jdk/src/macosx/native/jobjc/src/core/java/com/apple/jobjc/NativeArgumentBuffer.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
26 |
26 |
27 import java.nio.ByteOrder; |
27 import java.nio.ByteOrder; |
28 |
28 |
29 import com.apple.jobjc.Coder.PrimitivePointerCoder; |
29 import com.apple.jobjc.Coder.PrimitivePointerCoder; |
30 |
30 |
31 import javax.tools.annotation.GenerateNativeHeader; |
|
32 |
31 |
33 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
34 @GenerateNativeHeader |
|
35 public final class NativeArgumentBuffer{ |
32 public final class NativeArgumentBuffer{ |
36 private static final ThreadLocal<NativeArgumentBuffer> threadLocal = new ThreadLocal<NativeArgumentBuffer>(); |
33 private static final ThreadLocal<NativeArgumentBuffer> threadLocal = new ThreadLocal<NativeArgumentBuffer>(); |
37 |
34 |
38 static NativeArgumentBuffer getThreadLocalBuffer(final JObjCRuntime runtime) { |
35 static NativeArgumentBuffer getThreadLocalBuffer(final JObjCRuntime runtime) { |
39 runtime.assertOK(); |
36 runtime.assertOK(); |