hotspot/src/share/vm/utilities/copy.hpp
changeset 36086 f70e100d3195
parent 29180 50369728b00e
child 40010 e32d5e545789
--- a/hotspot/src/share/vm/utilities/copy.hpp	Wed Feb 10 14:30:25 2016 +0100
+++ b/hotspot/src/share/vm/utilities/copy.hpp	Wed Feb 10 15:20:38 2016 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2016, Oracle and/or its affiliates. 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
@@ -227,6 +227,16 @@
     }
   }
 
+  /**
+   * Copy and *unconditionally* byte swap elements
+   *
+   * @param src address of source
+   * @param dst address of destination
+   * @param byte_count number of bytes to copy
+   * @param elem_size size of the elements to copy-swap
+   */
+  static void conjoint_swap(address src, address dst, size_t byte_count, size_t elem_size);
+
   // Fill methods
 
   // Fill word-aligned words, not atomic on each word