src/share/vm/c1/c1_Compilation.hpp

changeset 5614
9758d9f36299
parent 4860
46f6f063b272
child 5914
d13d7aba8c12
     1.1 --- a/src/share/vm/c1/c1_Compilation.hpp	Thu Aug 29 21:46:09 2013 +0200
     1.2 +++ b/src/share/vm/c1/c1_Compilation.hpp	Thu Aug 29 18:56:29 2013 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -279,8 +279,8 @@
    1.11  // Base class for objects allocated by the compiler in the compilation arena
    1.12  class CompilationResourceObj ALLOCATION_SUPER_CLASS_SPEC {
    1.13   public:
    1.14 -  void* operator new(size_t size) { return Compilation::current()->arena()->Amalloc(size); }
    1.15 -  void* operator new(size_t size, Arena* arena) {
    1.16 +  void* operator new(size_t size) throw() { return Compilation::current()->arena()->Amalloc(size); }
    1.17 +  void* operator new(size_t size, Arena* arena) throw() {
    1.18      return arena->Amalloc(size);
    1.19    }
    1.20    void  operator delete(void* p) {} // nothing to do

mercurial