JavaNativeMethodImpl_OpenJDK7.st
branchdevelopment
changeset 2959 3e837849ce3e
parent 2958 bbd626006ab0
child 3019 c04668cd040d
--- a/JavaNativeMethodImpl_OpenJDK7.st	Mon Dec 09 23:52:18 2013 +0000
+++ b/JavaNativeMethodImpl_OpenJDK7.st	Tue Dec 10 10:46:13 2013 +0000
@@ -36,7 +36,7 @@
 
 !JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - java.io'!
 
-_java_io_FileOutputStream_open: this _: a1 _: a2 
+_java_io_FileOutputStream_open: this _: a1 _: a2
 
     <javanative: 'java/io/FileOutputStream' name: 'open(Ljava/lang/String;Z)V'>
 
@@ -45,7 +45,7 @@
     "Modified: / 12-11-2013 / 22:48:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_FileOutputStream_write: this _: byte _: append 
+_java_io_FileOutputStream_write: this _: byte _: append
 
     <javanative: 'java/io/FileOutputStream' name: 'write(IZ)V'>
     "
@@ -83,7 +83,7 @@
     "Modified: / 08-02-2013 / 11:57:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_canonicalize0: this _: a1 
+_java_io_Win32FileSystem_canonicalize0: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'canonicalize0(Ljava/lang/String;)Ljava/lang/String;'>
 
@@ -92,7 +92,7 @@
     "Modified: / 11-11-2013 / 22:00:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_canonicalizeWithPrefix0: this _: a1 _: a2 
+_java_io_Win32FileSystem_canonicalizeWithPrefix0: this _: a1 _: a2
 
     <javanative: 'java/io/Win32FileSystem' name: 'canonicalizeWithPrefix0(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;'>
 
@@ -101,7 +101,7 @@
     "Modified: / 11-11-2013 / 22:01:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_checkAccess: this _: a1 _: a2 
+_java_io_Win32FileSystem_checkAccess: this _: a1 _: a2
 
     <javanative: 'java/io/Win32FileSystem' name: 'checkAccess(Ljava/io/File;I)Z'>
 
@@ -110,7 +110,7 @@
     "Modified: / 11-11-2013 / 22:01:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_createDirectory: this _: a1 
+_java_io_Win32FileSystem_createDirectory: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'createDirectory(Ljava/io/File;)Z'>
 
@@ -119,7 +119,7 @@
     "Modified: / 11-11-2013 / 22:01:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_createFileExclusively: this _: a1 
+_java_io_Win32FileSystem_createFileExclusively: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'createFileExclusively(Ljava/lang/String;)Z'>
 
@@ -128,7 +128,7 @@
     "Modified: / 11-11-2013 / 22:01:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_delete0: this _: a1 
+_java_io_Win32FileSystem_delete0: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'delete0(Ljava/io/File;)Z'>
 
@@ -137,7 +137,7 @@
     "Modified: / 11-11-2013 / 22:02:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_getBooleanAttributes: this _: a1 
+_java_io_Win32FileSystem_getBooleanAttributes: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'getBooleanAttributes(Ljava/io/File;)I'>
 
@@ -146,7 +146,7 @@
     "Modified: / 11-11-2013 / 22:02:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_getDriveDirectory: this _: a1 
+_java_io_Win32FileSystem_getDriveDirectory: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'getDriveDirectory(I)Ljava/lang/String;'>
 
@@ -155,7 +155,7 @@
     "Modified: / 11-11-2013 / 22:02:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_getLastModifiedTime: this _: a1 
+_java_io_Win32FileSystem_getLastModifiedTime: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'getLastModifiedTime(Ljava/io/File;)J'>
 
@@ -164,7 +164,7 @@
     "Modified: / 11-11-2013 / 22:02:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_getLength: this _: a1 
+_java_io_Win32FileSystem_getLength: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'getLength(Ljava/io/File;)J'>
 
@@ -173,7 +173,7 @@
     "Modified: / 11-11-2013 / 22:02:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_getSpace0: this _: a1 _: a2 
+_java_io_Win32FileSystem_getSpace0: this _: a1 _: a2
 
     <javanative: 'java/io/Win32FileSystem' name: 'getSpace0(Ljava/io/File;I)J'>
 
@@ -182,7 +182,7 @@
     "Modified: / 11-11-2013 / 22:02:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_list: this _: a1 
+_java_io_Win32FileSystem_list: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'list(Ljava/io/File;)[Ljava/lang/String;'>
 
@@ -191,7 +191,7 @@
     "Modified: / 11-11-2013 / 22:02:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_listRoots0: this 
+_java_io_Win32FileSystem_listRoots0: this
 
     <javanative: 'java/io/Win32FileSystem' name: 'listRoots0()I'>
 
@@ -200,7 +200,7 @@
     "Modified: / 11-11-2013 / 22:03:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_rename0: this _: a1 _: a2 
+_java_io_Win32FileSystem_rename0: this _: a1 _: a2
 
     <javanative: 'java/io/Win32FileSystem' name: 'rename0(Ljava/io/File;Ljava/io/File;)Z'>
 
@@ -209,7 +209,7 @@
     "Modified: / 11-11-2013 / 22:03:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_setLastModifiedTime: this _: a1 _: a2 _: a3 
+_java_io_Win32FileSystem_setLastModifiedTime: this _: a1 _: a2 _: a3
 
     <javanative: 'java/io/Win32FileSystem' name: 'setLastModifiedTime(Ljava/io/File;J)Z'>
 
@@ -218,7 +218,7 @@
     "Modified: / 11-11-2013 / 22:03:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_setPermission: this _: a1 _: a2 _: a3 _: a4 
+_java_io_Win32FileSystem_setPermission: this _: a1 _: a2 _: a3 _: a4
 
     <javanative: 'java/io/Win32FileSystem' name: 'setPermission(Ljava/io/File;IZZ)Z'>
 
@@ -227,7 +227,7 @@
     "Modified: / 11-11-2013 / 22:03:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_Win32FileSystem_setReadOnly: this _: a1 
+_java_io_Win32FileSystem_setReadOnly: this _: a1
 
     <javanative: 'java/io/Win32FileSystem' name: 'setReadOnly(Ljava/io/File;)Z'>
 
@@ -236,49 +236,49 @@
     "Modified: / 11-11-2013 / 22:03:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_io_WinNTFileSystem_getDriveDirectory: this _: a1 
+_java_io_WinNTFileSystem_getDriveDirectory: this _: a1
 
     <javanative: 'java/io/WinNTFileSystem' name: 'getDriveDirectory(I)Ljava/lang/String;'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_java_io_WinNTFileSystem_getSpace0: this _: a1 _: a2 
+_java_io_WinNTFileSystem_getSpace0: this _: a1 _: a2
 
     <javanative: 'java/io/WinNTFileSystem' name: 'getSpace0(Ljava/io/File;I)J'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_java_io_WinNTFileSystem_initIDs: this 
+_java_io_WinNTFileSystem_initIDs: this
 
     <javanative: 'java/io/WinNTFileSystem' name: 'initIDs()V'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_java_io_WinNTFileSystem_rename0: this _: a1 _: a2 
+_java_io_WinNTFileSystem_rename0: this _: a1 _: a2
 
     <javanative: 'java/io/WinNTFileSystem' name: 'rename0(Ljava/io/File;Ljava/io/File;)Z'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_java_io_WinNTFileSystem_setLastModifiedTime: this _: a1 _: a2 _: a3 
+_java_io_WinNTFileSystem_setLastModifiedTime: this _: a1 _: a2 _: a3
 
     <javanative: 'java/io/WinNTFileSystem' name: 'setLastModifiedTime(Ljava/io/File;J)Z'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_java_io_WinNTFileSystem_setPermission: this _: a1 _: a2 _: a3 _: a4 
+_java_io_WinNTFileSystem_setPermission: this _: a1 _: a2 _: a3 _: a4
 
     <javanative: 'java/io/WinNTFileSystem' name: 'setPermission(Ljava/io/File;IZZ)Z'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_java_io_WinNTFileSystem_setReadOnly: this _: a1 
+_java_io_WinNTFileSystem_setReadOnly: this _: a1
 
     <javanative: 'java/io/WinNTFileSystem' name: 'setReadOnly(Ljava/io/File;)Z'>
 
@@ -287,7 +287,7 @@
 
 !JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - java.lang'!
 
-_java_lang_ClassLoader_getCaller: this _: a1 
+_java_lang_ClassLoader_getCaller: this _: a1
 
     <javanative: 'java/lang/ClassLoader' name: 'getCaller(I)Ljava/lang/Class;'>
 
@@ -306,14 +306,14 @@
     "Modified: / 07-02-2013 / 23:35:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_lang_Thread_setNativeName: this _: a1 
+_java_lang_Thread_setNativeName: this _: a1
 
     <javanative: 'java/lang/Thread' name: 'setNativeName(Ljava/lang/String;)V'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_java_lang_Throwable_fillInStackTrace: this _: a1 
+_java_lang_Throwable_fillInStackTrace: this _: a1
 
     <javanative: 'java/lang/Throwable' name: 'fillInStackTrace(I)Ljava/lang/Throwable;'>
 
@@ -360,7 +360,7 @@
     "Modified: / 08-02-2013 / 01:28:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_lang_UNIXProcess_forkAndExec: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6 _: a7 _: a8 
+_java_lang_UNIXProcess_forkAndExec: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6 _: a7 _: a8
 
     <javanative: 'java/lang/UNIXProcess' name: 'forkAndExec([B[BI[BI[B[IZ)I'>
 
@@ -369,7 +369,7 @@
 
 !JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - java.util.zip'!
 
-_java_util_zip_ZipFile_getCommentBytes: this _: jzentry _: a2 
+_java_util_zip_ZipFile_getCommentBytes: this _: jzentry _: a2
 
     <javanative: 'java/util/zip/ZipFile' name: 'getCommentBytes(J)[B'>
 
@@ -381,7 +381,7 @@
     "Modified: / 08-02-2013 / 09:46:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_util_zip_ZipFile_getEntry: this _: a1 _: a2 _: a3 _: a4 
+_java_util_zip_ZipFile_getEntry: this _: a1 _: a2 _: a3 _: a4
 
     <javanative: 'java/util/zip/ZipFile' name: 'getEntry(J[BZ)J'>
     "
@@ -397,7 +397,7 @@
     member isNil ifTrue: [
         ^ 0
     ] ifFalse: [
-        ^ ZipEntryCache indexOf: member ifAbsent:[
+        "/^ ZipEntryCache indexOf: member ifAbsent:[
             | index |
 
             ZipEntryCacheLock critical:[
@@ -410,14 +410,18 @@
                     ZipEntryCache at: index put: member.
                 ].
             ].
-            index.
-        ].
+            "/Logger
+            "/    log: 'java.util.zip.ZipFile.getEntry() called for ', index printString
+            "/    severity: #debug
+            "/    facility: 'JVM'.
+            ^ index.
+        "/].
     ]
 
-    "Modified: / 09-12-2013 / 23:36:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 10-12-2013 / 00:56:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_util_zip_ZipFile_getEntryBytes: this _: jzentry _: a2 _: type 
+_java_util_zip_ZipFile_getEntryBytes: this _: jzentry _: a2 _: type
 
     <javanative: 'java/util/zip/ZipFile' name: 'getEntryBytes(JI)[B'>
 
@@ -427,7 +431,7 @@
     type == 0 "JZENTRY_NAME" ifTrue:[
         ^zmember fileNameLength == 0
             ifTrue:[nil]
-            ifFalse:[zmember fileName asByteArray].       
+            ifFalse:[zmember fileName asByteArray].
     ].
     type == 1 "JZENTRY_EXTRA" ifTrue:[
         ^zmember extraFieldLength == 0
@@ -445,7 +449,7 @@
     "Modified: / 15-11-2013 / 22:58:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_util_zip_ZipFile_getEntryCSize: this _: jzentry _: a2 
+_java_util_zip_ZipFile_getEntryCSize: this _: jzentry _: a2
 
     <javanative: 'java/util/zip/ZipFile' name: 'getEntryCSize(J)J'>
 
@@ -457,7 +461,7 @@
     "Modified: / 08-02-2013 / 09:44:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_util_zip_ZipFile_getEntryCrc: this _: jzentry _: a2 
+_java_util_zip_ZipFile_getEntryCrc: this _: jzentry _: a2
 
     <javanative: 'java/util/zip/ZipFile' name: 'getEntryCrc(J)J'>
 
@@ -469,7 +473,7 @@
     "Modified: / 08-02-2013 / 09:45:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_util_zip_ZipFile_getEntryFlag: this _: jzentry _: a2 
+_java_util_zip_ZipFile_getEntryFlag: this _: jzentry _: a2
 
     <javanative: 'java/util/zip/ZipFile' name: 'getEntryFlag(J)I'>
 
@@ -481,7 +485,7 @@
     "Modified: / 08-02-2013 / 09:42:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_util_zip_ZipFile_getEntryMethod: this _: jzentry _: a2 
+_java_util_zip_ZipFile_getEntryMethod: this _: jzentry _: a2
 
     <javanative: 'java/util/zip/ZipFile' name: 'getEntryMethod(J)I'>
 
@@ -493,7 +497,7 @@
     "Modified: / 08-02-2013 / 09:44:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_util_zip_ZipFile_getEntrySize: this _: jzentry _: a2 
+_java_util_zip_ZipFile_getEntrySize: this _: jzentry _: a2
 
     <javanative: 'java/util/zip/ZipFile' name: 'getEntrySize(J)J'>
 
@@ -505,7 +509,7 @@
     "Modified: / 08-02-2013 / 09:43:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_util_zip_ZipFile_getEntryTime: this _: jzentry _: a2 
+_java_util_zip_ZipFile_getEntryTime: this _: jzentry _: a2
 
     <javanative: 'java/util/zip/ZipFile' name: 'getEntryTime(J)J'>
 
@@ -517,7 +521,7 @@
     "Modified: / 08-02-2013 / 09:45:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_java_util_zip_ZipFile_open: this _: a1 _: a2 _: a3 _: a4 _: usemmap 
+_java_util_zip_ZipFile_open: this _: a1 _: a2 _: a3 _: a4 _: usemmap
 
     <javanative: 'java/util/zip/ZipFile' name: 'open(Ljava/lang/String;IJZ)J'>
 
@@ -530,21 +534,21 @@
 
 !JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - sun.misc'!
 
-_sun_misc_Perf_attach: this _: a1 _: a2 _: a3 
+_sun_misc_Perf_attach: this _: a1 _: a2 _: a3
 
     <javanative: 'sun/misc/Perf' name: 'attach(Ljava/lang/String;II)Ljava/nio/ByteBuffer;'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_sun_misc_Perf_createByteArray: this _: a1 _: a2 _: a3 _: a4 _: a5 
+_sun_misc_Perf_createByteArray: this _: a1 _: a2 _: a3 _: a4 _: a5
 
     <javanative: 'sun/misc/Perf' name: 'createByteArray(Ljava/lang/String;II[BI)Ljava/nio/ByteBuffer;'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_sun_misc_Perf_createLong: this _: a1 _: a2 _: a3 _: a4 _: a5 
+_sun_misc_Perf_createLong: this _: a1 _: a2 _: a3 _: a4 _: a5
 
     <javanative: 'sun/misc/Perf' name: 'createLong(Ljava/lang/String;IIJ)Ljava/nio/ByteBuffer;'>
 
@@ -556,28 +560,28 @@
     "Modified: / 20-02-2013 / 00:13:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_sun_misc_Perf_detach: this _: a1 
+_sun_misc_Perf_detach: this _: a1
 
     <javanative: 'sun/misc/Perf' name: 'detach(Ljava/nio/ByteBuffer;)V'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_sun_misc_Perf_highResCounter: this 
+_sun_misc_Perf_highResCounter: this
 
     <javanative: 'sun/misc/Perf' name: 'highResCounter()J'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_sun_misc_Perf_highResFrequency: this 
+_sun_misc_Perf_highResFrequency: this
 
     <javanative: 'sun/misc/Perf' name: 'highResFrequency()J'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_sun_misc_Perf_registerNatives: this 
+_sun_misc_Perf_registerNatives: this
 
     <javanative: 'sun/misc/Perf' name: 'registerNatives()V'>
 
@@ -586,21 +590,21 @@
     "Modified: / 11-02-2013 / 02:53:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_sun_misc_Unsafe_copyMemory: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6 _: a7 _: a8 
+_sun_misc_Unsafe_copyMemory: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6 _: a7 _: a8
 
     <javanative: 'sun/misc/Unsafe' name: 'copyMemory(Ljava/lang/Object;JLjava/lang/Object;JJ)V'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_sun_misc_Unsafe_defineAnonymousClass: this _: a1 _: a2 _: a3 
+_sun_misc_Unsafe_defineAnonymousClass: this _: a1 _: a2 _: a3
 
     <javanative: 'sun/misc/Unsafe' name: 'defineAnonymousClass(Ljava/lang/Class;[B[Ljava/lang/Object;)Ljava/lang/Class;'>
 
     ^ JavaVM unimplementedNativeMethodSignal raise
 !
 
-_sun_misc_Unsafe_setMemory: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6 
+_sun_misc_Unsafe_setMemory: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6
 
     <javanative: 'sun/misc/Unsafe' name: 'setMemory(Ljava/lang/Object;JJB)V'>
 
@@ -609,7 +613,7 @@
 
 !JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - sun.reflect'!
 
-_sun_reflect_Reflection_getCallerClass0: this _: a1 
+_sun_reflect_Reflection_getCallerClass0: this _: a1
 
     <javanative: 'sun/reflect/Reflection' name: 'getCallerClass0(I)Ljava/lang/Class;'>
 
@@ -620,7 +624,7 @@
     "Modified (comment): / 11-11-2013 / 21:18:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
-_sun_reflect_Reflection_getCallerClass: this 
+_sun_reflect_Reflection_getCallerClass: this
 
     <javanative: 'sun/reflect/Reflection' name: 'getCallerClass()Ljava/lang/Class;'>