src/share/vm/utilities/copy.hpp

changeset 9562
dee6a1ce4a0c
parent 2708
1d1603768966
child 9572
624a0741915c
     1.1 --- a/src/share/vm/utilities/copy.hpp	Wed Nov 28 13:49:11 2018 +0000
     1.2 +++ b/src/share/vm/utilities/copy.hpp	Mon Dec 03 07:29:54 2018 -0500
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2003, 2018, 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 @@ -227,6 +227,16 @@
    1.11      }
    1.12    }
    1.13  
    1.14 +  /**
    1.15 +   * Copy and *unconditionally* byte swap elements
    1.16 +   *
    1.17 +   * @param src address of source
    1.18 +   * @param dst address of destination
    1.19 +   * @param byte_count number of bytes to copy
    1.20 +   * @param elem_size size of the elements to copy-swap
    1.21 +   */
    1.22 +  static void conjoint_swap(address src, address dst, size_t byte_count, size_t elem_size);
    1.23 +
    1.24    // Fill methods
    1.25  
    1.26    // Fill word-aligned words, not atomic on each word

mercurial