aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/libjava/gnu/gcj/RawDataManaged.java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.7/libjava/gnu/gcj/RawDataManaged.java')
-rw-r--r--gcc-4.7/libjava/gnu/gcj/RawDataManaged.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc-4.7/libjava/gnu/gcj/RawDataManaged.java b/gcc-4.7/libjava/gnu/gcj/RawDataManaged.java
new file mode 100644
index 000000000..91a36acb9
--- /dev/null
+++ b/gcc-4.7/libjava/gnu/gcj/RawDataManaged.java
@@ -0,0 +1,23 @@
+/* Copyright (C) 2004 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package gnu.gcj;
+
+/** A type used to indicate special data used by native code. Unlike the
+ <code>RawData</code> type, fields declared as <code>RawDataManaged</code>
+ will be "marked" by the memory manager and considered for garbage
+ collection.
+
+ Native data which is allocated using CNI's <code>JvAllocBytes()</code>
+ function and stored in a <code>RawDataManaged</code> will be automatically
+ freed when the Java object it is associated with becomes unreachable. */
+
+public final class RawDataManaged
+{
+ private RawDataManaged() { }
+}