8219460: ppc: adjust NativeGeneralJump::insert_unconditional to stack allocated MacroAssembler
authormbaesken
Wed, 20 Feb 2019 17:29:30 +0100
changeset 53867 87ef165e7bcd
parent 53866 880baf6db17b
child 53868 1bd7233074c1
8219460: ppc: adjust NativeGeneralJump::insert_unconditional to stack allocated MacroAssembler Reviewed-by: mdoerr
src/hotspot/cpu/ppc/nativeInst_ppc.cpp
--- a/src/hotspot/cpu/ppc/nativeInst_ppc.cpp	Thu Feb 21 11:26:39 2019 +0530
+++ b/src/hotspot/cpu/ppc/nativeInst_ppc.cpp	Wed Feb 20 17:29:30 2019 +0100
@@ -1,6 +1,6 @@
 /*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2012, 2015 SAP SE. All rights reserved.
+ * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2019, 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
@@ -362,8 +362,8 @@
 
 void NativeGeneralJump::insert_unconditional(address code_pos, address entry) {
   CodeBuffer cb(code_pos, BytesPerInstWord + 1);
-  MacroAssembler* a = new MacroAssembler(&cb);
-  a->b(entry);
+  MacroAssembler a(&cb);
+  a.b(entry);
   ICache::ppc64_flush_icache_bytes(code_pos, NativeGeneralJump::instruction_size);
 }