Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8267791: [lworld][lw3] Support compiler blackholes for inline types #429

Closed
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1928,7 +1928,7 @@ void Compile::process_inline_types(PhaseIterGVN &igvn, bool remove) {
igvn.replace_node(vt, vt->get_oop());
} else {
// Check if any users are blackholes. If so, rewrite them to use either the
// allocated box, or individual components, instead of the inline type node
// allocated buffer, or individual components, instead of the inline type node
// that goes away.
for (DUIterator i = vt->outs(); vt->has_out(i); i++) {
if (vt->out(i)->is_Blackhole()) {
@@ -21,16 +21,16 @@
* questions.
*/

package runtime.valhalla.inlinetypes;
package compiler.valhalla.inlinetypes;

/*
* @test BlackholeTest
* @summary Check that blackholes work with inline types
* @run main/othervm
* -Xbatch
* -XX:+UnlockExperimentalVMOptions
* -XX:CompileCommand=blackhole,runtime/valhalla/inlinetypes/BlackholeTest.blackhole
* runtime.valhalla.inlinetypes.BlackholeTest
* -XX:CompileCommand=blackhole,compiler/valhalla/inlinetypes/BlackholeTest.blackhole
* compiler.valhalla.inlinetypes.BlackholeTest
*/

public class BlackholeTest {