src/share/vm/runtime/prefetch.hpp

changeset 2314
f95d63e2154a
parent 1907
c18cbe5936b8
child 6876
710a3c8b516e
     1.1 --- a/src/share/vm/runtime/prefetch.hpp	Tue Nov 23 15:01:43 2010 -0500
     1.2 +++ b/src/share/vm/runtime/prefetch.hpp	Tue Nov 23 13:22:55 2010 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2003, 2010, 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 @@ -22,6 +22,11 @@
    1.11   *
    1.12   */
    1.13  
    1.14 +#ifndef SHARE_VM_RUNTIME_PREFETCH_HPP
    1.15 +#define SHARE_VM_RUNTIME_PREFETCH_HPP
    1.16 +
    1.17 +#include "memory/allocation.hpp"
    1.18 +
    1.19  // If calls to prefetch methods are in a loop, the loop should be cloned
    1.20  // such that if Prefetch{Scan,Copy}Interval and/or PrefetchFieldInterval
    1.21  // say not to do prefetching, these methods aren't called.  At the very
    1.22 @@ -42,3 +47,5 @@
    1.23    // Prefetch anticipating write; must not fault, semantically a no-op
    1.24    static void write(void* loc, intx interval);
    1.25  };
    1.26 +
    1.27 +#endif // SHARE_VM_RUNTIME_PREFETCH_HPP

mercurial