#include "vm/types.h"
+#include "mm/dumpmemory.hpp"
#include "mm/memory.h"
#include "native/llni.h"
switch (t) {
case CONSTANT_Class:
- nfc = DNEW(forward_class);
+#warning Use list.
+ nfc = (forward_class*) DumpMemory::allocate(sizeof(forward_class));
nfc->next = forward_classes;
forward_classes = nfc;
break;
case CONSTANT_String:
- nfs = DNEW(forward_string);
+#warning Use list.
+ nfs = (forward_string*) DumpMemory::allocate(sizeof(forward_string));
nfs->next = forward_strings;
forward_strings = nfs;
break;
case CONSTANT_NameAndType:
- nfn = DNEW(forward_nameandtype);
+#warning Use list.
+ nfn = (forward_nameandtype*) DumpMemory::allocate(sizeof(forward_nameandtype));
nfn->next = forward_nameandtypes;
forward_nameandtypes = nfn;
case CONSTANT_Fieldref:
case CONSTANT_Methodref:
case CONSTANT_InterfaceMethodref:
- nff = DNEW(forward_fieldmethint);
+#warning Use list.
+ nff = (forward_fieldmethint*) DumpMemory::allocate(sizeof(forward_fieldmethint));
nff->next = forward_fieldmethints;
forward_fieldmethints = nff;
time_parsecpool, time_verify, time_attrs;
#endif
+ // Create new dump memory area.
+ DumpMemoryArea dma;
+
RT_TIMING_GET_TIME(time_start);
/* Get the classbuffer's class. */
/* Get the names of the super interfaces. */
- interfacesnames = DMNEW(utf*, c->interfacescount);
+ interfacesnames = (utf**) DumpMemory::allocate(sizeof(utf*) * c->interfacescount);
for (int32_t i = 0; i < c->interfacescount; i++) {
index = suck_u2(cb);
{
classinfo *c;
bool result;
- int32_t dumpmarker;
/* Get the classbuffer's class. */
log_message_class("Loading class: ", c);
#endif
- /* Mark start of dump memory area. */
-
- DMARKER;
-
/* Class is currently loading. */
c->state |= CLASS_LOADING;
result = load_class_from_classbuffer_intern(cb);
- /* Release dump area. */
-
- DRELEASE;
-
/* An error occurred. */
if (result == false) {