harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2298) [linu-kernel] keep ThreadLocal instances weakly refenced in Thread
Date Tue, 10 Apr 2007 06:41:32 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487697
] 

Mikhail Fursov commented on HARMONY-2298:
-----------------------------------------

Here is stack trace with GC+JET failure:

>	harmonyvm.dll!Class::get_allocation_handle()  Line 1134 + 0x11	C++
 	harmonyvm.dll!class_get_allocation_handle(Class * ch=0x00000008)  Line 2394	C++
 	gc_cc.dll!Partial_Reveal_Object::valid()  Line 199 + 0xc	C++
 	gc_cc.dll!gc_copy_process_reference(Slot slot={...}, int phase=2)  Line 166	C++
 	gc_cc.dll!gc_copy_add_root_set_entry(Slot root={...})  Line 283 + 0xd	C++
 	gc_cc.dll!gc_add_root_set_entry_slot(Slot root={...})  Line 252 + 0x9	C++
 	gc_cc.dll!gc_add_root_set_entry(void * * ref=0x04b9f8e8, unsigned int is_pinned=0)  Line
265 + 0x9	C++
 	harmonyvm.dll!vm_enumerate_root_reference(void * * ref=0x04b9f8e8, unsigned int is_pinned=0)
 Line 139 + 0x10	C++
 	jitrino.dll!Jitrino::Jet::rt_enum(void * jit=0x01284478, Method * method=0x04376a98, void
* henum=0x00000000, JitFrameContext * context=0x044607bc)  Line 347 + 0x11	C++
 	jitrino.dll!JIT_get_root_set_from_stack_frame(void * jit=0x01284478, Method * method=0x04376a98,
void * enum_handle=0x00000000, JitFrameContext * context=0x044607bc)  Line 371 + 0x15	C++
 	harmonyvm.dll!Dll_JIT::get_root_set_from_stack_frame(Method * method=0x04376a98, void *
enum_handle=0x00000000, const JitFrameContext * context=0x044607bc)  Line 104 + 0x18	C++
 	harmonyvm.dll!vm_enumerate_root_set_single_thread_on_stack(StackIterator * si=0x044607b8)
 Line 257 + 0x39	C++
 	harmonyvm.dll!vm_enumerate_thread(VM_thread * thread=0x04389e40)  Line 222 + 0x9	C++
 	harmonyvm.dll!stop_the_world_root_set_enumeration()  Line 108 + 0xc	C++
 	harmonyvm.dll!vm_enumerate_root_set_all_threads()  Line 148	C++
 	gc_cc.dll!enumerate_universe()  Line 136 + 0x8	C++
 	gc_cc.dll!copy_gc(int size=7340044)  Line 375 + 0x16	C++
 	gc_cc.dll!select_gc(int size=7340044)  Line 96 + 0x9	C++
 	gc_cc.dll!gc_alloc(unsigned int in_size=7340044, unsigned int _ah=20129088, void * thread_pointer=0x01288cf4)
 Line 274 + 0x9	C++
 	harmonyvm.dll!vm_new_vector_using_vtable_and_thread_pointer(int length=1835008, unsigned
int vector_handle=20129088, void * tp=0x01288cf4)  Line 217 + 0x14	C++
 	harmonyvm.dll!vm_rt_new_vector_using_vtable_and_thread_pointer(int length=1835008, unsigned
int vector_handle=20129088, void * tp=0x01288cf4)  Line 112 + 0x11	C++
 	01320a35()	



Should I open new JIRA for it?

> [linu-kernel] keep ThreadLocal instances weakly refenced in Thread
> ------------------------------------------------------------------
>
>                 Key: HARMONY-2298
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2298
>             Project: Harmony
>          Issue Type: Task
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>            Priority: Trivial
>
> This is a follow-up task after discussion [1]:
> j.l.Thread should keep ThreadLocal objects in a WeakIdentityHashMap (it is IdentityHashMap
in DRLVM now), to guard against potential memory leaks. I see no harm in this enhancement,
only gain.
> [1] http://thread.gmane.org/gmane.comp.java.harmony.devel/19157/focus=19305

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message