author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 08 Feb 2013 05:19:39 +0100 | |
branch | openjdk7-support |
changeset 2045 | cc12924bfbe8 |
parent 2044 | 15d698503afe |
child 2046 | 3309a3bc8615 |
permissions | -rw-r--r-- |
2041
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
" |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
3 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
4 |
New code and modifications done at SWING Research Group [1]: |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
5 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
7 |
SWING Research Group, Czech Technical University in Prague |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
8 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
This software is furnished under a license and may be used |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
10 |
only in accordance with the terms of that license and with the |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
11 |
inclusion of the above copyright notice. This software may not |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
12 |
be provided or otherwise made available to, or used by, any |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
13 |
other person. No title to or ownership of the software is |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
14 |
hereby transferred. |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
15 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
16 |
[1] Code written at SWING Research Group contains a signature |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
17 |
of one of the above copright owners. For exact set of such code, |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
18 |
see the differences between this version and version stx:libjava |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
19 |
as of 1.9.2010 |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
20 |
" |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
21 |
"{ Package: 'stx:libjava' }" |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
22 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
23 |
JavaNativeMethodImpl_OpenJDK6 subclass:#JavaNativeMethodImpl_OpenJDK7 |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
instanceVariableNames:'' |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
classVariableNames:'' |
2044
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
26 |
poolDictionaries:'JavaVMData' |
2041
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
27 |
category:'Languages-Java-Support-OpenJDK7' |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
! |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
29 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
30 |
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'documentation'! |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
31 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
32 |
copyright |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
33 |
" |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
36 |
New code and modifications done at SWING Research Group [1]: |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
37 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
39 |
SWING Research Group, Czech Technical University in Prague |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
40 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
41 |
This software is furnished under a license and may be used |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
42 |
only in accordance with the terms of that license and with the |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
43 |
inclusion of the above copyright notice. This software may not |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
44 |
be provided or otherwise made available to, or used by, any |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
45 |
other person. No title to or ownership of the software is |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
46 |
hereby transferred. |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
47 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
48 |
[1] Code written at SWING Research Group contains a signature |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
49 |
of one of the above copright owners. For exact set of such code, |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
50 |
see the differences between this version and version stx:libjava |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
51 |
as of 1.9.2010 |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
52 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
53 |
" |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
54 |
! ! |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
55 |
|
2044
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
56 |
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - java.io'! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
57 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
58 |
_java_io_FileOutputStream_open: this _: a1 _: a2 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
59 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
60 |
<javanative: 'java/io/FileOutputStream' name: 'open(Ljava/lang/String;Z)V'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
61 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
62 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
63 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
64 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
65 |
_java_io_FileOutputStream_write: this _: a1 _: a2 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
66 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
67 |
<javanative: 'java/io/FileOutputStream' name: 'write(IZ)V'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
68 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
69 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
70 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
71 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
72 |
_java_io_FileOutputStream_writeBytes: this _: a1 _: a2 _: a3 _: a4 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
73 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
74 |
<javanative: 'java/io/FileOutputStream' name: 'writeBytes([BIIZ)V'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
75 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
76 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
77 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
78 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
79 |
_java_io_UnixFileSystem_createFileExclusively: this _: a1 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
80 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
81 |
<javanative: 'java/io/UnixFileSystem' name: 'createFileExclusively(Ljava/lang/String;)Z'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
82 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
83 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
84 |
! ! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
85 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
86 |
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - java.lang'! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
87 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
88 |
_java_lang_ClassLoader_getCaller: this _: a1 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
89 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
90 |
<javanative: 'java/lang/ClassLoader' name: 'getCaller(I)Ljava/lang/Class;'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
91 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
92 |
"/ index 0: java.lang.ClassLoader.class |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
93 |
"/ index 1: the immediate caller of index 0. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
94 |
"/ index 2: the immediate caller of index 1. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
95 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
96 |
| ctx | |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
97 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
98 |
ctx := self nativeContext sender. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
99 |
a1 timesRepeat:[ |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
100 |
ctx := ctx sender |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
101 |
]. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
102 |
^JavaVM reflection javaClassObjectForClass: ctx receiver class theNonMetaclass |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
103 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
104 |
"Modified: / 07-02-2013 / 23:35:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
105 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
106 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
107 |
_java_lang_Thread_setNativeName: this _: a1 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
108 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
109 |
<javanative: 'java/lang/Thread' name: 'setNativeName(Ljava/lang/String;)V'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
110 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
111 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
112 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
113 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
114 |
_java_lang_Throwable_fillInStackTrace: this _: a1 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
115 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
116 |
<javanative: 'java/lang/Throwable' name: 'fillInStackTrace(I)Ljava/lang/Throwable;'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
117 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
118 |
| java_lang_Throwable exceptionObject list con | |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
119 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
120 |
java_lang_Throwable := Java classNamed: 'java/lang/Throwable'. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
121 |
exceptionObject := this. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
122 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
123 |
"/ |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
124 |
"/ debugging only |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
125 |
"/ |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
126 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
127 |
(java_lang_Throwable notNil and:[(exceptionObject isKindOf: java_lang_Throwable) not]) ifTrue: [ |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
128 |
self error:'Thrown object is not a java.lang.Throwable'. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
129 |
]. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
130 |
con := self nativeContext sender. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
131 |
"/ Just a guess, there is no comment what the parameter means... |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
132 |
a1 timesRepeat: [ con := con sender ]. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
133 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
134 |
"/ |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
135 |
"/ we are not interrested in all intermediate Exception frames ... |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
136 |
"/ |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
137 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
138 |
FullExceptionTrace ifFalse: [ |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
139 |
"/ first, skip any JavaVM contexts |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
140 |
[ con receiver == exceptionObject ] whileFalse: [ con := con sender ]. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
141 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
142 |
"/ then, all exception-init contexts |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
143 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
144 |
[ con receiver == exceptionObject ] whileTrue: [ con := con sender ]. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
145 |
]. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
146 |
list := OrderedCollection new. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
147 |
[ con notNil ] whileTrue: [ |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
148 |
(con isJavaContext) ifTrue: [ |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
149 |
"/ add a copy, in case the context continues with some |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
150 |
"/ cleanup ... |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
151 |
list add: con shallowCopy |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
152 |
]. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
153 |
con := con sender |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
154 |
]. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
155 |
exceptionObject instVarNamed: 'backtrace' put: (list asArray). |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
156 |
^ nil. |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
157 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
158 |
"Modified: / 08-02-2013 / 01:28:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
159 |
! ! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
160 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
161 |
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - java.util.zip'! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
162 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
163 |
_java_util_zip_ZipFile_getCommentBytes: this _: a1 _: a2 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
164 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
165 |
<javanative: 'java/util/zip/ZipFile' name: 'getCommentBytes(J)[B'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
166 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
167 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
168 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
169 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
170 |
_java_util_zip_ZipFile_getEntryBytes: this _: a1 _: a2 _: a3 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
171 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
172 |
<javanative: 'java/util/zip/ZipFile' name: 'getEntryBytes(JI)[B'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
173 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
174 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
175 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
176 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
177 |
_java_util_zip_ZipFile_getEntryCSize: this _: a1 _: a2 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
178 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
179 |
<javanative: 'java/util/zip/ZipFile' name: 'getEntryCSize(J)J'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
180 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
181 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
182 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
183 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
184 |
_java_util_zip_ZipFile_getEntryCrc: this _: a1 _: a2 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
185 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
186 |
<javanative: 'java/util/zip/ZipFile' name: 'getEntryCrc(J)J'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
187 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
188 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
189 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
190 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
191 |
_java_util_zip_ZipFile_getEntryFlag: this _: a1 _: a2 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
192 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
193 |
<javanative: 'java/util/zip/ZipFile' name: 'getEntryFlag(J)I'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
194 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
195 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
196 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
197 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
198 |
_java_util_zip_ZipFile_getEntryMethod: this _: a1 _: a2 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
199 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
200 |
<javanative: 'java/util/zip/ZipFile' name: 'getEntryMethod(J)I'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
201 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
202 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
203 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
204 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
205 |
_java_util_zip_ZipFile_getEntrySize: this _: a1 _: a2 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
206 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
207 |
<javanative: 'java/util/zip/ZipFile' name: 'getEntrySize(J)J'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
208 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
209 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
210 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
211 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
212 |
_java_util_zip_ZipFile_getEntryTime: this _: a1 _: a2 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
213 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
214 |
<javanative: 'java/util/zip/ZipFile' name: 'getEntryTime(J)J'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
215 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
216 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
217 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
218 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
219 |
_java_util_zip_ZipFile_open: this _: a1 _: a2 _: a3 _: a4 _: a5 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
220 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
221 |
<javanative: 'java/util/zip/ZipFile' name: 'open(Ljava/lang/String;IJZ)J'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
222 |
|
2045
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
223 |
"No mmap support for zip files yet, use Open JDK 6 implementation" |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
224 |
|
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
225 |
| path mode lastModTime result | |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
226 |
|
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
227 |
path := a1 asString. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
228 |
"/(path endsWith:'.jar') ifFalse:[self breakPoint: #jv]. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
229 |
mode := a2. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
230 |
lastModTime := a3. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
231 |
result := path asFilename. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
232 |
result ifNil: [ JavaVM throwZipException ]. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
233 |
^[ |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
234 |
| i zar | |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
235 |
zar := ZipArchive readingFrom: result readStream. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
236 |
i := ZipCache indexOf: nil. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
237 |
i ~~ 0 ifTrue:[ |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
238 |
ZipCache at: i put: zar. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
239 |
i |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
240 |
] ifFalse:[ |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
241 |
ZipCache add: zar. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
242 |
ZipCache size. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
243 |
]. |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
244 |
] on: Error do:[:ex| |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
245 |
JavaVM throwZipException:'Cannot open zip file: ' , ex description |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
246 |
] |
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
247 |
|
cc12924bfbe8
More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2044
diff
changeset
|
248 |
"Modified: / 08-02-2013 / 05:04:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2044
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
249 |
! ! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
250 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
251 |
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - sun.misc'! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
252 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
253 |
_sun_misc_Unsafe_copyMemory: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6 _: a7 _: a8 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
254 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
255 |
<javanative: 'sun/misc/Unsafe' name: 'copyMemory(Ljava/lang/Object;JLjava/lang/Object;JJ)V'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
256 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
257 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
258 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
259 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
260 |
_sun_misc_Unsafe_defineAnonymousClass: this _: a1 _: a2 _: a3 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
261 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
262 |
<javanative: 'sun/misc/Unsafe' name: 'defineAnonymousClass(Ljava/lang/Class;[B[Ljava/lang/Object;)Ljava/lang/Class;'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
263 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
264 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
265 |
! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
266 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
267 |
_sun_misc_Unsafe_setMemory: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6 |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
268 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
269 |
<javanative: 'sun/misc/Unsafe' name: 'setMemory(Ljava/lang/Object;JJB)V'> |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
270 |
|
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
271 |
^ JavaVM unimplementedNativeMethodSignal raise |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
272 |
! ! |
15d698503afe
Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
273 |
|
2041
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
274 |
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'documentation'! |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
275 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
276 |
version_HG |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
277 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
278 |
^ '$Changeset: <not expanded> $' |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
279 |
! ! |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
280 |