JDK-8321560 : [BACKOUT] 8299426: Heap dump does not contain virtual Thread stack references
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 23
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2023-12-07
  • Updated: 2024-07-25
  • Resolved: 2023-12-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23
23 b02Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Test: compiler/c2/TestReduceAllocationAndHeapDump.java

java.lang.IllegalStateException: Subprocess finished with non-zero exit code.
	at compiler.c2.TestReduceAllocationAndHeapDump.main(TestReduceAllocationAndHeapDump.java:62)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1570)


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S29389/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7b52ab7d-ed66-477e-b94b-413945f2e0df/runs/cbfdc770-20e7-4ad7-96fd-0792ab0681b0/workspace/open/src/hotspot/share/services/heapDumper.cpp:2129), pid=43697, tid=17155
#  assert(!SafepointSynchronize::is_at_safepoint()) failed: merging happens outside safepoint
#
# JRE version: Java(TM) SE Runtime Environment (23.0+1) (fastdebug build 23-ea+1-5)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 23-ea+1-5, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Core dump will be written. Default location: core.43697
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -XX:CompileThresholdScaling=0.01 -XX:+HeapDumpAfterFullGC -XX:HeapDumpPath=/System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S17880/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8a1c64b8-9e0a-478e-ad04-2622aeb94613/runs/4cab1ec7-4e2b-4b8e-8e09-683653277c63/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_1/scratch/1/dumps -XX:CompileCommand=compileonly,compiler.c2.HeapDumper::testIt -XX:CompileCommand=exclude,compiler.c2.HeapDumper::dummy compiler.c2.HeapDumper

Host: "Macmini9,1" arm64, 8 cores, 16G, Darwin 21.5.0, macOS 12.4 (21F79)
Time: Thu Dec  7 23:38:17 2023 GMT elapsed time: 0.097789 seconds (0d 0h 0m 0s)

---------------  T H R E A D  ---------------

Current thread (0x000000011d20d6f0):  VMThread "VM Thread"          [id=17155, stack(0x000000016bd54000,0x000000016bf57000) (2060K)]

Stack: [0x000000016bd54000,0x000000016bf57000],  sp=0x000000016bf55700,  free space=2053k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.dylib+0x112c600]  VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x564  (heapDumper.cpp:2129)
V  [libjvm.dylib+0x112ce20]  VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*)+0x0
V  [libjvm.dylib+0x55d724]  print_error_for_unit_test(char const*, char const*, char*)+0x0
V  [libjvm.dylib+0x7dc94c]  VM_HeapDumper::skip_operation() const+0x0
V  [libjvm.dylib+0x1133bc0]  VM_Operation::evaluate()+0xf4
V  [libjvm.dylib+0x115618c]  VMThread::evaluate_operation(VM_Operation*)+0xd0
V  [libjvm.dylib+0x1156bb4]  VMThread::inner_execute(VM_Operation*)+0x1d8
V  [libjvm.dylib+0x7de4f8]  HeapDumper::dump(char const*, outputStream*, int, bool, unsigned int)+0x2ac
V  [libjvm.dylib+0x7debe0]  HeapDumper::dump_heap(bool)+0x22c
V  [libjvm.dylib+0x4b1e28]  CollectedHeap::full_gc_dump(GCTimer*, bool)+0x188
V  [libjvm.dylib+0x70a694]  G1FullGCJFRTracerMark::~G1FullGCJFRTracerMark()+0x64
V  [libjvm.dylib+0x6e5664]  G1FullGCScope::~G1FullGCScope()+0x40
V  [libjvm.dylib+0x6e2918]  G1FullCollector::~G1FullCollector()+0x14c
V  [libjvm.dylib+0x6a0e98]  G1CollectedHeap::do_full_collection(bool, bool)+0x21c
V  [libjvm.dylib+0x770ca4]  VM_G1CollectFull::doit()+0x7c
V  [libjvm.dylib+0x1133bc0]  VM_Operation::evaluate()+0xf4
V  [libjvm.dylib+0x115618c]  VMThread::evaluate_operation(VM_Operation*)+0xd0
V  [libjvm.dylib+0x1156cb4]  VMThread::inner_execute(VM_Operation*)+0x2d8
V  [libjvm.dylib+0x1155eac]  VMThread::loop()+0x98
V  [libjvm.dylib+0x1155c4c]  VMThread::run()+0xc0
V  [libjvm.dylib+0x10727f8]  Thread::call_run()+0xf4
V  [libjvm.dylib+0xe356e4]  thread_native_entry(Thread*)+0x138
C  [libsystem_pthread.dylib+0x726c]  _pthread_start+0x94
VM_Operation (0x000000016bf55f48): HeapDumpMerge, mode: no safepoint, requested by thread 0x000000012c808810

Comments
Added noreg-trivial since this is a backout.
27-06-2024

Changeset: cb7e3d26 Author: Alex Menkov <amenkov@openjdk.org> Date: 2023-12-08 01:24:25 +0000 URL: https://git.openjdk.org/jdk/commit/cb7e3d263a6ed65257b316ffcbbd5e19142eb8d1
08-12-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17028 Date: 2023-12-08 00:41:35 +0000
08-12-2023

Failing on all platforms, in multiple tiers, so performing a backout of JDK-8299426
08-12-2023

Looks like JDK-8299426 has caused this.
08-12-2023