harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r601355 - in /harmony/enhanced/drlvm/trunk/vm: port/src/lil/ vmcore/include/ vmcore/src/jit/ vmcore/src/util/em64t/base/ vmcore/src/util/ia32/base/
Date Wed, 05 Dec 2007 15:16:11 GMT
Author: gshimansky
Date: Wed Dec  5 07:16:10 2007
New Revision: 601355

URL: http://svn.apache.org/viewvc?rev=601355&view=rev
Log:
Fixed HARMONY-5238
[drlvm][util] memory leak at compile_gen_compile_me at compile_ia32.cpp while EIOffice run

Leaked name is freed now, those names that point to static data are not freed. It was
necessary to add a flag to DynamicCode struct to distinguish between these two kinds of
storage for the name.

Also I enabled dynamic code collection for compile_me stubs in compile_em64t


Modified:
    harmony/enhanced/drlvm/trunk/vm/port/src/lil/lil_code_generator.cpp
    harmony/enhanced/drlvm/trunk/vm/vmcore/include/compile.h
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/compile_em64t.cpp
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_lock_rt_support_em64t.cpp
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_runtime_support_em64t.cpp
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/compile_IA32.cpp
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_generic_rt_support_ia32.cpp
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_lock_rt_support_ia32.cpp
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_runtime_support_ia32.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/port/src/lil/lil_code_generator.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/src/lil/lil_code_generator.cpp?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/src/lil/lil_code_generator.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/src/lil/lil_code_generator.cpp Wed Dec  5 07:16:10
2007
@@ -61,7 +61,7 @@
     NativeCodePtr stub = compile_main(cs, &stub_size, code_pool);
     lil_cs_set_code_size(cs, stub_size);
     
-    compile_add_dynamic_generated_code_chunk("unknown", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("unknown", false, stub, stub_size);
 
     if(jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED))
     {

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/include/compile.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/include/compile.h?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/include/compile.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/include/compile.h Wed Dec  5 07:16:10 2007
@@ -144,6 +144,7 @@
 struct DynamicCode
 {
     const char *name;
+    bool free_name;
     const void *address;
     size_t length;
     DynamicCode *next;
@@ -157,7 +158,7 @@
 /** 
  * Adding dynamic generated code info to global list.
  */
-void compile_add_dynamic_generated_code_chunk(const char* name, const void* address, size_t
length);
+void compile_add_dynamic_generated_code_chunk(const char* name, bool free_name, const void*
address, size_t length);
 void compile_clear_dynamic_code_list(DynamicCode* list);
 
 #endif

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp Wed Dec  5 07:16:10 2007
@@ -826,11 +826,13 @@
 }
 
 // Adding dynamic generated code info to global list
-void compile_add_dynamic_generated_code_chunk(const char* name, const void* address, size_t
length)
+void compile_add_dynamic_generated_code_chunk(const char* name, bool free_name,
+    const void* address, size_t length)
 {
     DynamicCode *dc = (DynamicCode *)STD_MALLOC(sizeof(DynamicCode));
     assert(dc);
     dc->name = name;
+    dc->free_name = free_name;
     dc->address = address;
     dc->length = length;
 
@@ -847,6 +849,8 @@
     while (list)
     {
         DynamicCode* next = list->next;
+        if (list->free_name)
+            STD_FREE((void *)list->name);
         STD_FREE(list);
         list = next;
     }

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/compile_em64t.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/compile_em64t.cpp?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/compile_em64t.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/compile_em64t.cpp Wed Dec 
5 07:16:10 2007
@@ -283,15 +283,10 @@
     
     assert(stub - (char *)addr <= STUB_SIZE);
 
-#if 0
-    if (VM_Global_State::loader_env->TI->isEnabled())
-    {
-        jvmti_add_dynamic_generated_code_chunk("compile_me_generic", stub, STUB_SIZE);
-        if(jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
-            jvmti_send_dynamic_code_generated_event("compile_me_generic", stub, STUB_SIZE);
-        }
+    compile_add_dynamic_generated_code_chunk("compile_me_generic", false, addr, STUB_SIZE);
+    if(jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
+        jvmti_send_dynamic_code_generated_event("compile_me_generic", stub, STUB_SIZE);
     }
-#endif
 
     DUMP_STUB(addr, "compileme_generic", stub - (char *)addr);
 
@@ -325,23 +320,18 @@
     assert(stub - (char *)addr <= STUB_SIZE);
 
 
-#if 0
-    if (VM_Global_State::loader_env->TI->isEnabled())
-    {
-        char * name;
-        const char * c = class_get_name(method_get_class(method));
-        const char * m = method_get_name(method);
-        const char * d = method_get_descriptor(method);
-        size_t sz = strlen(c)+strlen(m)+strlen(d)+12;
-        name = (char *)STD_MALLOC(sz);
-        sprintf(name, "compileme.%s.%s%s", c, m, d);
-        jvmti_add_dynamic_generated_code_chunk(name, stub, STUB_SIZE);
-        if(jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
-            jvmti_send_dynamic_code_generated_event(name, stub, STUB_SIZE);
-        }
-    }
-#endif
+    char * name;
+    const char * c = class_get_name(method_get_class(method));
+    const char * m = method_get_name(method);
+    const char * d = method_get_descriptor(method);
+    size_t sz = strlen(c)+strlen(m)+strlen(d)+12;
+    name = (char *)STD_MALLOC(sz);
+    sprintf(name, "compileme.%s.%s%s", c, m, d);
+    compile_add_dynamic_generated_code_chunk(name, true, addr, STUB_SIZE);
 
+    if(jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
+        jvmti_send_dynamic_code_generated_event(name, addr, STUB_SIZE);
+    }
 
 #ifndef NDEBUG
     static unsigned done = 0;

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_lock_rt_support_em64t.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_lock_rt_support_em64t.cpp?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_lock_rt_support_em64t.cpp
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_lock_rt_support_em64t.cpp
Wed Dec  5 07:16:10 2007
@@ -160,7 +160,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_monitor_enter_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_monitor_enter_naked", false, stub, stub_size);
 
     // Put TI support here
     DUMP_STUB(stub, "getaddress__vm_monitor_enter_naked", ss - stub);
@@ -195,7 +195,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_monitor_enter_static_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_monitor_enter_static_naked", false, stub,
stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_monitor_enter_static_naked", stub, stub_size);
@@ -282,7 +282,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_monitor_exit_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_monitor_exit_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_monitor_exit_naked", stub, stub_size);
@@ -317,7 +317,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_monitor_exit_static_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_monitor_exit_static_naked", false, stub,
stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_monitor_exit_static_naked", stub, stub_size);

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_runtime_support_em64t.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_runtime_support_em64t.cpp?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_runtime_support_em64t.cpp
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/em64t/base/jit_runtime_support_em64t.cpp
Wed Dec  5 07:16:10 2007
@@ -217,7 +217,7 @@
     assert((ss - stub) <= stub_size);
     addr = stub;
 
-    compile_add_dynamic_generated_code_chunk("setup_java_to_native_frame", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("setup_java_to_native_frame", false, stub, stub_size);
 
     // Put TI support here.
     DUMP_STUB(stub, "getaddress__setup_java_to_native_frame", ss - stub);
@@ -270,7 +270,7 @@
     assert((ss - stub) <= stub_size);
     addr = stub;
 
-    compile_add_dynamic_generated_code_chunk("pop_java_to_native_frame", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("pop_java_to_native_frame", false, stub, stub_size);
 
     // Put TI support here.
     DUMP_STUB(stub, "getaddress__pop_java_to_native_frame", ss - stub);

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/compile_IA32.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/compile_IA32.cpp?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/compile_IA32.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/compile_IA32.cpp Wed Dec  5
07:16:10 2007
@@ -200,7 +200,7 @@
     
     assert(stub - (char *)addr <= STUB_SIZE);
 
-    compile_add_dynamic_generated_code_chunk("compile_me_generic", addr, STUB_SIZE);
+    compile_add_dynamic_generated_code_chunk("compile_me_generic", false, addr, STUB_SIZE);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("compile_me_generic", addr, STUB_SIZE);
@@ -237,7 +237,7 @@
     size_t sz = strlen(c)+strlen(m)+strlen(d)+12;
     name = (char *)STD_MALLOC(sz);
     sprintf(name, "compileme.%s.%s%s", c, m, d);
-    compile_add_dynamic_generated_code_chunk(name, addr, STUB_SIZE);
+    compile_add_dynamic_generated_code_chunk(name, true, addr, STUB_SIZE);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event(name, addr, STUB_SIZE);

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_generic_rt_support_ia32.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_generic_rt_support_ia32.cpp?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_generic_rt_support_ia32.cpp
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_generic_rt_support_ia32.cpp
Wed Dec  5 07:16:10 2007
@@ -89,7 +89,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_lshl_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_lshl_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_lshl_naked", stub, stub_size);
@@ -141,7 +141,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_lshr_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_lshr_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_lshr_naked", stub, stub_size);
@@ -193,7 +193,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_lushr_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_lushr_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_lushr_naked", stub, stub_size);
@@ -327,7 +327,7 @@
     assert((ss - stub) <= stub_size);
     addr = stub;
 
-    compile_add_dynamic_generated_code_chunk("vm_const_lrem_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_const_lrem_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_const_lrem_naked", stub, stub_size);
@@ -534,7 +534,7 @@
     assert((ss - stub) <= stub_size);
     addr = stub;
 
-    compile_add_dynamic_generated_code_chunk("vm_const_ldiv_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_const_ldiv_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_const_ldiv_naked", stub, stub_size);
@@ -612,7 +612,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_d2i", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_d2i", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_d2i", stub, stub_size);
@@ -668,7 +668,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_d2l", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_d2l", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_d2l", stub, stub_size);
@@ -791,7 +791,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_f2i", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_f2i", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_f2i", stub, stub_size);
@@ -846,7 +846,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_f2l", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_f2l", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_f2l", stub, stub_size);
@@ -943,7 +943,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_frem", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_frem", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_frem", stub, stub_size);
@@ -993,7 +993,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_drem", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_drem", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_drem", stub, stub_size);

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_lock_rt_support_ia32.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_lock_rt_support_ia32.cpp?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_lock_rt_support_ia32.cpp
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_lock_rt_support_ia32.cpp
Wed Dec  5 07:16:10 2007
@@ -296,7 +296,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_monitor_enter_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_monitor_enter_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_monitor_enter_naked", stub, stub_size);
@@ -334,7 +334,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_monitor_enter_static_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_monitor_enter_static_naked", false, stub,
stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_monitor_enter_static_naked", stub, stub_size);
@@ -370,7 +370,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_monitor_exit_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_monitor_exit_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_monitor_exit_naked", stub, stub_size);
@@ -405,7 +405,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_monitor_exit_static_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_monitor_exit_static_naked", false, stub,
stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_monitor_exit_static_naked", stub, stub_size);

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_runtime_support_ia32.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_runtime_support_ia32.cpp?rev=601355&r1=601354&r2=601355&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_runtime_support_ia32.cpp
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/ia32/base/jit_runtime_support_ia32.cpp
Wed Dec  5 07:16:10 2007
@@ -170,7 +170,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_rt_checkcast", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_rt_checkcast", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_rt_checkcast", stub, stub_size);
@@ -296,7 +296,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_initialize_class_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_initialize_class_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_initialize_class_naked", stub, stub_size);
@@ -379,7 +379,7 @@
 
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("object_allocation_stub_with_thread_pointer",
stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("object_allocation_stub_with_thread_pointer",
false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("object_allocation_stub_with_thread_pointer",
stub, stub_size);
@@ -452,7 +452,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_aastore_nullpointer", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_aastore_nullpointer", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_aastore_nullpointer", stub, stub_size);
@@ -486,7 +486,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_aastore_arraystore", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_aastore_arraystore", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_aastore_arraystore", stub, stub_size);
@@ -640,7 +640,7 @@
 
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_new_vector_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_new_vector_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_new_vector_naked", stub, stub_size);
@@ -736,7 +736,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_multinewarray_resolved_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_multinewarray_resolved_naked", false, stub,
stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_multinewarray_resolved_naked", stub,
stub_size);
@@ -772,7 +772,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_instantiate_cp_string_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_instantiate_cp_string_naked", false, stub,
stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_instantiate_cp_string_naked", stub, stub_size);
@@ -846,7 +846,7 @@
     addr = stub;
     assert((ss - stub) <= stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_get_interface_vtable_old_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_get_interface_vtable_old_naked", false,
stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_get_interface_vtable_old_naked", stub,
stub_size);
@@ -889,7 +889,7 @@
     assert((ss - stub) <= stub_size);
     addr = stub;
 
-    compile_add_dynamic_generated_code_chunk("setup_java_to_native_frame", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("setup_java_to_native_frame", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("setup_java_to_native_frame", stub, stub_size);
@@ -930,7 +930,7 @@
     assert((ss - stub) <= stub_size);
     addr = stub;
 
-    compile_add_dynamic_generated_code_chunk("pop_java_to_native_frame", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("pop_java_to_native_frame", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("pop_java_to_native_frame", stub, stub_size);
@@ -988,7 +988,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("vm_throw_linking_exception_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_throw_linking_exception_naked", false, stub,
stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_throw_linking_exception_naked", stub,
stub_size);
@@ -1038,7 +1038,7 @@
     addr = stub;
     assert((ss - stub) < stub_size);
 
-    compile_add_dynamic_generated_code_chunk("gc_write_barrier_fastcall", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("gc_write_barrier_fastcall", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("gc_write_barrier_fastcall", stub, stub_size);
@@ -1087,7 +1087,7 @@
     assert((ss - stub) <= stub_size);
     addr = stub;
 
-    compile_add_dynamic_generated_code_chunk("vm_lrem_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_lrem_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_lrem_naked", stub, stub_size);
@@ -1135,7 +1135,7 @@
     assert((s - stub) <= stub_size);
     addr = stub;
 
-    compile_add_dynamic_generated_code_chunk("vm_ldiv_naked", stub, stub_size);
+    compile_add_dynamic_generated_code_chunk("vm_ldiv_naked", false, stub, stub_size);
 
     if (jvmti_should_report_event(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)) {
         jvmti_send_dynamic_code_generated_event("vm_ldiv_naked", stub, stub_size);



Mime
View raw message