File: VMString.java

package info (click to toggle)
jamvm 1.5.1-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,476 kB
  • ctags: 2,830
  • sloc: ansic: 15,592; sh: 8,775; java: 1,251; asm: 981; makefile: 167
file content (18 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package java.lang;

/**
 * Helper class for String, to abstract VM-specifics.
 *
 * @author Robert Lougher
 */
final class VMString
{
  /**
   * JamVM uses its own internal String hashtable which is much
   * faster than the reference Classpath implementation.
   *
   * @param s the String to intern
   * @return existing interned string or s
   */
  static native String intern(String s);
}