JDK-8246735 : assert(!m->was_never_executed()) failed: don't reset to 0 -- could be mistaken for never-executed #
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 15
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2020-06-08
  • Updated: 2020-06-08
  • Resolved: 2020-06-08
Related Reports
Duplicate :  
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (t:/workspace/open/src/hotspot/share/compiler/compilationPolicy.cpp:301), pid=2304, tid=4684
#  assert(!m->was_never_executed()) failed: don't reset to 0 -- could be mistaken for never-executed
#

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

Current thread (0x0000006cd7fe16a0):  JavaThread "ForkJoinPool.commonPool-worker-21" daemon [_thread_in_vm, id=4684, stack(0x0000006cdda30000,0x0000006cddb30000)]

Stack: [0x0000006cdda30000,0x0000006cddb30000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0xa44221]  os::platform_print_native_stack+0xf1  (os_windows_x86.cpp:369)
V  [jvm.dll+0xc598f6]  VMError::report+0xf86  (vmError.cpp:732)
V  [jvm.dll+0xc5b15e]  VMError::report_and_die+0x7ee  (vmError.cpp:1548)
V  [jvm.dll+0xc5b814]  VMError::report_and_die+0x64  (vmError.cpp:1341)
V  [jvm.dll+0x436677]  report_vm_error+0x117  (debug.cpp:264)
V  [jvm.dll+0x3edb14]  SimpleCompPolicy::reset_counter_for_invocation_event+0xe4  (compilationPolicy.cpp:301)
V  [jvm.dll+0x3ed200]  SimpleCompPolicy::event+0x170  (compilationPolicy.cpp:410)
V  [jvm.dll+0x606d1a]  InterpreterRuntime::frequency_counter_overflow_inner+0x27a  (interpreterRuntime.cpp:1078)
V  [jvm.dll+0x606943]  InterpreterRuntime::frequency_counter_overflow+0x23  (interpreterRuntime.cpp:1026)
C  0x0000006cce7410c1

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.util.Spliterators$ArraySpliterator.forEachRemaining(Ljava/util/function/Consumer;)V+0 java.base@15-ea
J 1499 c2 java.util.stream.AbstractPipeline.copyInto(Ljava/util/stream/Sink;Ljava/util/Spliterator;)V java.base@15-ea (54 bytes) @ 0x0000006cce91c5dc [0x0000006cce91c540+0x000000000000009c]
J 1494 c2 java.util.stream.AbstractPipeline.wrapAndCopyInto(Ljava/util/stream/Sink;Ljava/util/Spliterator;)Ljava/util/stream/Sink; java.base@15-ea (18 bytes) @ 0x0000006cce9eb204 [0x0000006cce9eb180+0x0000000000000084]
J 6701 c2 java.util.stream.WhileOps$DropWhileTask.doLeaf()Ljava/util/stream/Node; java.base@15-ea (156 bytes) @ 0x0000006ccf353638 [0x0000006ccf353400+0x0000000000000238]
J 6634 c2 java.util.stream.AbstractTask.compute()V java.base@15-ea (141 bytes) @ 0x0000006ccf337a94 [0x0000006ccf337420+0x0000000000000674]
J 6490 c2 java.util.concurrent.CountedCompleter.exec()Z java.base@15-ea (6 bytes) @ 0x0000006ccf2e6d5c [0x0000006ccf2e6d20+0x000000000000003c]
J 6489 c2 java.util.concurrent.ForkJoinTask.doExec()I java.base@15-ea (37 bytes) @ 0x0000006ccf2e2788 [0x0000006ccf2e2740+0x0000000000000048]
J 6528 c2 java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;I)V java.base@15-ea (104 bytes) @ 0x0000006ccf2fff54 [0x0000006ccf2ffec0+0x0000000000000094]
J 6498 c2 java.util.concurrent.ForkJoinPool.scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;I)Z java.base@15-ea (212 bytes) @ 0x0000006ccf2f13d0 [0x0000006ccf2f10e0+0x00000000000002f0]
j  java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V+25 java.base@15-ea
J 6329 c2 java.util.concurrent.ForkJoinWorkerThread.run()V java.base@15-ea (192 bytes) @ 0x0000006ccf2ab4a0 [0x0000006ccf2ab3e0+0x00000000000000c0]
v  ~StubRoutines::call_stub
Comments
Same issue as JDK-8025220. Closing as dup.
08-06-2020