-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
None
-
Direct leak of 48 byte(s) in 3 object(s) allocated from:
#0 0x7f1d24413545 in __interceptor_malloc ../../../../src/libsanitizer/lsan/lsan_interceptors.cpp:75
#1 0x7f1d23aa3646 in os::malloc(unsigned long, MEMFLAGS, NativeCallStack const&) src/hotspot/share/runtime/os.cpp:673
#2 0x7f1d231f7e4e in AllocateHeap(unsigned long, MEMFLAGS, NativeCallStack const&, AllocFailStrategy::AllocFailEnum) src/hotspot/share/memory/allocation.cpp:42
#3 0x7f1d231f7e4e in AllocateHeap(unsigned long, MEMFLAGS, AllocFailStrategy::AllocFailEnum) src/hotspot/share/memory/allocation.cpp:52
#4 0x7f1d2393b0ed in CHeapObjBase::operator new(unsigned long, MEMFLAGS) src/hotspot/share/memory/allocation.hpp:183
#5 0x7f1d2393b0ed in CHeapObj<(MEMFLAGS)1>::operator new(unsigned long) src/hotspot/share/memory/allocation.hpp:237
#6 0x7f1d2393b0ed in LoaderConstraintTable::add_loader_constraint(Symbol*, InstanceKlass*, oopDesc*, oopDesc*) src/hotspot/share/classfile/loaderConstraints.cpp:167
#7 0x7f1d2393b5d4 in LoaderConstraintTable::add_entry(Symbol*, InstanceKlass*, Handle, InstanceKlass*, Handle) src/hotspot/share/classfile/loaderConstraints.cpp:323
#8 0x7f1d23cd602c in SystemDictionary::add_loader_constraint(Symbol*, Klass*, Handle, Handle) src/hotspot/share/classfile/systemDictionary.cpp:1883
#9 0x7f1d23cd656d in SystemDictionary::check_signature_loaders(Symbol*, Klass*, Handle, Handle, bool) src/hotspot/share/classfile/systemDictionary.cpp:2038
#10 0x7f1d2393264c in LinkResolver::check_method_loader_constraints(LinkInfo const&, methodHandle const&, char const*, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:659
#11 0x7f1d23932fc4 in LinkResolver::resolve_method(LinkInfo const&, Bytecodes::Code, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:790
#12 0x7f1d2393750d in LinkResolver::linktime_resolve_static_method(LinkInfo const&, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:1106
#13 0x7f1d2393750d in LinkResolver::resolve_static_call(CallInfo&, LinkInfo const&, bool, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:1072
#14 0x7f1d23a49cf1 in MethodHandles::resolve_MemberName(Handle, Klass*, int, bool, JavaThread*) src/hotspot/share/prims/methodHandles.cpp:778
#15 0x7f1d23cd7b6b in SystemDictionary::link_method_handle_constant(Klass*, int, Klass*, Symbol*, Symbol*, JavaThread*) src/hotspot/share/classfile/systemDictionary.cpp:2366
#16 0x7f1d2344de5a in ConstantPool::resolve_constant_at_impl(constantPoolHandle const&, int, int, bool*, JavaThread*) src/hotspot/share/oops/constantPool.cpp:1093
#17 0x7f1d23285bd3 in ConstantPool::resolve_possibly_cached_constant_at(int, JavaThread*) src/hotspot/share/oops/constantPool.hpp:726
#18 0x7f1d23285bd3 in BootstrapInfo::resolve_bsm(JavaThread*) src/hotspot/share/interpreter/bootstrapInfo.cpp:97
#19 0x7f1d23cd87fd in SystemDictionary::invoke_bootstrap_method(BootstrapInfo&, JavaThread*) src/hotspot/share/classfile/systemDictionary.cpp:2393
#20 0x7f1d23931270 in LinkResolver::resolve_dynamic_call(CallInfo&, BootstrapInfo&, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:1815
#21 0x7f1d2393141d in LinkResolver::resolve_invokedynamic(CallInfo&, constantPoolHandle const&, int, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:1787
#22 0x7f1d236c48d9 in InterpreterRuntime::resolve_invokedynamic(JavaThread*) src/hotspot/share/interpreter/interpreterRuntime.cpp:946
#23 0x7f1d236c686c in InterpreterRuntime::resolve_from_cache(JavaThread*, Bytecodes::Code) src/hotspot/share/interpreter/interpreterRuntime.cpp:975
#24 0x7f1d11165335 (<unknown module>)
#25 0x7f1d11137cbe (<unknown module>)
#26 0x7f1d236cce01 in JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) src/hotspot/share/runtime/javaCalls.cpp:417
#27 0x7f1d23774e39 in jni_invoke_static src/hotspot/share/prims/jni.cpp:887
#28 0x7f1d237753f2 in jni_CallStaticBooleanMethod src/hotspot/share/prims/jni.cpp:1558
#29 0x562cc5025425 in run test/hotspot/jtreg/runtime/TLS/exestack-tls.c:106
#30 0x7f1d22629209 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58Direct leak of 48 byte(s) in 3 object(s) allocated from: #0 0x7f1d24413545 in __interceptor_malloc ../../../../src/libsanitizer/lsan/lsan_interceptors.cpp:75 #1 0x7f1d23aa3646 in os::malloc(unsigned long, MEMFLAGS, NativeCallStack const&) src/hotspot/share/runtime/os.cpp:673 #2 0x7f1d231f7e4e in AllocateHeap(unsigned long, MEMFLAGS, NativeCallStack const&, AllocFailStrategy::AllocFailEnum) src/hotspot/share/memory/allocation.cpp:42 #3 0x7f1d231f7e4e in AllocateHeap(unsigned long, MEMFLAGS, AllocFailStrategy::AllocFailEnum) src/hotspot/share/memory/allocation.cpp:52 #4 0x7f1d2393b0ed in CHeapObjBase::operator new(unsigned long, MEMFLAGS) src/hotspot/share/memory/allocation.hpp:183 #5 0x7f1d2393b0ed in CHeapObj<(MEMFLAGS)1>::operator new(unsigned long) src/hotspot/share/memory/allocation.hpp:237 #6 0x7f1d2393b0ed in LoaderConstraintTable::add_loader_constraint(Symbol*, InstanceKlass*, oopDesc*, oopDesc*) src/hotspot/share/classfile/loaderConstraints.cpp:167 #7 0x7f1d2393b5d4 in LoaderConstraintTable::add_entry(Symbol*, InstanceKlass*, Handle, InstanceKlass*, Handle) src/hotspot/share/classfile/loaderConstraints.cpp:323 #8 0x7f1d23cd602c in SystemDictionary::add_loader_constraint(Symbol*, Klass*, Handle, Handle) src/hotspot/share/classfile/systemDictionary.cpp:1883 #9 0x7f1d23cd656d in SystemDictionary::check_signature_loaders(Symbol*, Klass*, Handle, Handle, bool) src/hotspot/share/classfile/systemDictionary.cpp:2038 #10 0x7f1d2393264c in LinkResolver::check_method_loader_constraints(LinkInfo const&, methodHandle const&, char const*, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:659 #11 0x7f1d23932fc4 in LinkResolver::resolve_method(LinkInfo const&, Bytecodes::Code, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:790 #12 0x7f1d2393750d in LinkResolver::linktime_resolve_static_method(LinkInfo const&, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:1106 #13 0x7f1d2393750d in LinkResolver::resolve_static_call(CallInfo&, LinkInfo const&, bool, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:1072 #14 0x7f1d23a49cf1 in MethodHandles::resolve_MemberName(Handle, Klass*, int, bool, JavaThread*) src/hotspot/share/prims/methodHandles.cpp:778 #15 0x7f1d23cd7b6b in SystemDictionary::link_method_handle_constant(Klass*, int, Klass*, Symbol*, Symbol*, JavaThread*) src/hotspot/share/classfile/systemDictionary.cpp:2366 #16 0x7f1d2344de5a in ConstantPool::resolve_constant_at_impl(constantPoolHandle const&, int, int, bool*, JavaThread*) src/hotspot/share/oops/constantPool.cpp:1093 #17 0x7f1d23285bd3 in ConstantPool::resolve_possibly_cached_constant_at(int, JavaThread*) src/hotspot/share/oops/constantPool.hpp:726 #18 0x7f1d23285bd3 in BootstrapInfo::resolve_bsm(JavaThread*) src/hotspot/share/interpreter/bootstrapInfo.cpp:97 #19 0x7f1d23cd87fd in SystemDictionary::invoke_bootstrap_method(BootstrapInfo&, JavaThread*) src/hotspot/share/classfile/systemDictionary.cpp:2393 #20 0x7f1d23931270 in LinkResolver::resolve_dynamic_call(CallInfo&, BootstrapInfo&, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:1815 #21 0x7f1d2393141d in LinkResolver::resolve_invokedynamic(CallInfo&, constantPoolHandle const&, int, JavaThread*) src/hotspot/share/interpreter/linkResolver.cpp:1787 #22 0x7f1d236c48d9 in InterpreterRuntime::resolve_invokedynamic(JavaThread*) src/hotspot/share/interpreter/interpreterRuntime.cpp:946 #23 0x7f1d236c686c in InterpreterRuntime::resolve_from_cache(JavaThread*, Bytecodes::Code) src/hotspot/share/interpreter/interpreterRuntime.cpp:975 #24 0x7f1d11165335 (<unknown module>) #25 0x7f1d11137cbe (<unknown module>) #26 0x7f1d236cce01 in JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) src/hotspot/share/runtime/javaCalls.cpp:417 #27 0x7f1d23774e39 in jni_invoke_static src/hotspot/share/prims/jni.cpp:887 #28 0x7f1d237753f2 in jni_CallStaticBooleanMethod src/hotspot/share/prims/jni.cpp:1558 #29 0x562cc5025425 in run test/hotspot/jtreg/runtime/TLS/exestack-tls.c:106 #30 0x7f1d22629209 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
LoaderConstraintTable leaks LoaderConstraint
LSan has identified a probable leak related to LoaderConstraintTable and LoaderConstaint.