Skip to content

Commit

Permalink
8264649: runtime/InternalApi/ThreadCpuTimesDeadlock.java crash in fas…
Browse files Browse the repository at this point in the history
…tdebug C2 with -XX:-UseTLAB

Reviewed-by: thartmann, kvn
  • Loading branch information
Hui Shi authored and DamonFool committed Apr 10, 2021
1 parent 76bd313 commit 42f4d70
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/hotspot/share/opto/phaseX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,9 @@ void PhaseIterGVN::subsume_node( Node *old, Node *nn ) {
temp->init_req(0,nn); // Add a use to nn to prevent him from dying
remove_dead_node( old );
temp->del_req(0); // Yank bogus edge
if (nn != NULL && nn->outcnt() == 0) {
_worklist.push(nn);
}
#ifndef PRODUCT
if( VerifyIterativeGVN ) {
for ( int i = 0; i < _verify_window_size; i++ ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -30,6 +30,15 @@
* @run main/othervm -XX:+UsePerfData -Xmx128m ThreadCpuTimesDeadlock
*/

/*
* @test
* @bug 8264649
* @summary OSR compiled method crash when UseTLAB is off
* @requires vm.debug
* @modules java.management/sun.management
* @run main/othervm -XX:-UseTLAB -XX:+UsePerfData -Xmx128m ThreadCpuTimesDeadlock
*/

import java.lang.management.ManagementFactory;
import javax.management.JMException;
import javax.management.MBeanServer;
Expand Down

1 comment on commit 42f4d70

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.