Commit 2c553fb duke
committed Jun 2, 2020
File tree 2 files changed +8
-5
lines changed
test/hotspot/jtreg/compiler/arraycopy
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -977,8 +977,8 @@ void PhaseMacroExpand::process_users_of_allocation(CallNode *alloc) {
977
977
if (ac->is_clonebasic ()) {
978
978
Node* membar_after = ac->proj_out (TypeFunc::Control)->unique_ctrl_out ();
979
979
disconnect_projections (ac, _igvn);
980
- assert (alloc->in (0 )->is_Proj () && alloc->in (0 )->in (0 )->Opcode () == Op_MemBarCPUOrder, " mem barrier expected before allocation" );
981
- Node* membar_before = alloc->in (0 )->in (0 );
980
+ assert (alloc->in (TypeFunc::Memory )->is_Proj () && alloc->in (TypeFunc::Memory )->in (0 )->Opcode () == Op_MemBarCPUOrder, " mem barrier expected before allocation" );
981
+ Node* membar_before = alloc->in (TypeFunc::Memory )->in (0 );
982
982
disconnect_projections (membar_before->as_MemBar (), _igvn);
983
983
if (membar_after->is_MemBar ()) {
984
984
disconnect_projections (membar_after->as_MemBar (), _igvn);
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
23
23
24
24
/*
25
25
* @test
26
- * @bug 8076188
26
+ * @bug 8076188 8246153
27
27
* @summary arraycopy to non escaping destination may be eliminated
28
28
* @library /
29
29
*
30
30
* @run main/othervm -ea -XX:-BackgroundCompilation -XX:-UseOnStackReplacement
31
31
* -XX:CompileCommand=dontinline,compiler.arraycopy.TestEliminateArrayCopy*::m*
32
32
* compiler.arraycopy.TestEliminateArrayCopy
33
- *
33
+ * @run main/othervm -ea -XX:-BackgroundCompilation -XX:-UseOnStackReplacement
34
+ * -XX:+IgnoreUnrecognizedVMOptions -XX:+StressReflectiveCode
35
+ * -XX:CompileCommand=dontinline,compiler.arraycopy.TestEliminateArrayCopy*::m*
36
+ * compiler.arraycopy.TestEliminateArrayCopy
34
37
*/
35
38
36
39
package compiler .arraycopy ;
You can’t perform that action at this time.
0 commit comments