8280593: [PPC64, S390] redundant allocation of MacroAssembler in StubGenerator ctor
Reviewed-by: mdoerr, lucy
This commit is contained in:
parent
63e11cfa3f
commit
c936e7059b
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2021 SAP SE. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2022 SAP SE. 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
|
||||
@ -4656,8 +4656,6 @@ class StubGenerator: public StubCodeGenerator {
|
||||
|
||||
public:
|
||||
StubGenerator(CodeBuffer* code, bool all) : StubCodeGenerator(code) {
|
||||
// replace the standard masm with a special one:
|
||||
_masm = new MacroAssembler(code);
|
||||
if (all) {
|
||||
generate_all();
|
||||
} else {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2019 SAP SE. All rights reserved.
|
||||
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2022 SAP SE. 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
|
||||
@ -2404,9 +2404,6 @@ class StubGenerator: public StubCodeGenerator {
|
||||
|
||||
public:
|
||||
StubGenerator(CodeBuffer* code, bool all) : StubCodeGenerator(code) {
|
||||
// Replace the standard masm with a special one:
|
||||
_masm = new MacroAssembler(code);
|
||||
|
||||
_stub_count = !all ? 0x100 : 0x200;
|
||||
if (all) {
|
||||
generate_all();
|
||||
|
@ -69,7 +69,7 @@ void StubCodeDesc::print() const { print_on(tty); }
|
||||
// Implementation of StubCodeGenerator
|
||||
|
||||
StubCodeGenerator::StubCodeGenerator(CodeBuffer* code, bool print_code) {
|
||||
_masm = new MacroAssembler(code );
|
||||
_masm = new MacroAssembler(code);
|
||||
_print_code = PrintStubCode || print_code;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user