Searched refs:magic (Results 1 - 25 of 107) sorted by relevance

12345

/openjdk10/hotspot/src/cpu/s390/vm/
H A Dicache_s390.cpp31 // int magic (Z_R4)
38 int z_flush_icache(address start, int lines, int magic) { return magic; } argument
/openjdk10/jdk/src/jdk.management.agent/share/classes/sun/management/jdp/
H A DJdpGenericPacket.java34 * JDP protocol magic. Magic allows a reader to quickly select
37 * has to start from this magic.
56 * Validate protocol header magic field
58 * @param magic - value to validate
61 public static void checkMagic(int magic) argument
63 if (magic != MAGIC) {
64 throw new JdpException("Invalid JDP magic header: " + magic);
84 * @return protocol magic
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/ior/
H A DOldObjectKeyTemplateBase.java43 public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, argument
46 super( orb, magic, scid, serverid, orbid, oaid ) ;
48 // set version based on magic
49 if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
51 else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
53 else // any other magic should not be here
54 throw wrapper.badMagic( new Integer( magic ) ) ;
H A DObjectKeyFactoryImpl.java55 /** Based on the magic and scid, return the appropriate
57 * magic. If scid is not valid, null should be returned.
60 ObjectKeyTemplate handle( int magic, int scid, argument
79 // New magic used in our object keys for JDK 1.4, J2EE 1.3 and later.
131 public ObjectKeyTemplate handle( int magic, int scid,
137 if (magic >= JAVAMAGIC_NEWER)
138 oktemp = new POAObjectKeyTemplate( orb, magic, scid, is, osh ) ;
140 oktemp = new OldPOAObjectKeyTemplate( orb, magic, scid, is, osh ) ;
142 if (magic >= JAVAMAGIC_NEWER)
143 oktemp = new JIDLObjectKeyTemplate( orb, magic, sci
[all...]
H A DOldPOAObjectKeyTemplate.java47 public OldPOAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is ) argument
49 this( orb, magic, scid, is.read_long(), is.read_long(), is.read_long() ) ;
55 public OldPOAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is, argument
58 this( orb, magic, scid, is ) ;
62 public OldPOAObjectKeyTemplate( ORB orb, int magic, int scid, int serverid, argument
65 super( orb, magic, scid, serverid,
H A DOldJIDLObjectKeyTemplate.java58 public OldJIDLObjectKeyTemplate( ORB orb, int magic, int scid, argument
61 this( orb, magic, scid, is );
80 if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW &&
95 public OldJIDLObjectKeyTemplate( ORB orb, int magic, int scid, int serverid) argument
97 super( orb, magic, scid, serverid, JIDL_ORB_ID, JIDL_OAID ) ;
100 public OldJIDLObjectKeyTemplate(ORB orb, int magic, int scid, InputStream is) argument
102 this( orb, magic, scid, is.read_long() ) ;
H A DObjectKeyTemplateBase.java60 private int magic ; field in class:ObjectKeyTemplateBase
93 public ObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, argument
99 this.magic = magic ;
115 return (magic == other.magic) && (scid == other.scid) &&
123 result = 37*result + magic ;
167 return magic ;
H A DNewObjectKeyTemplateBase.java47 public NewObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, argument
50 super( orb, magic, scid, serverid, orbid, oaid ) ;
53 if (magic != ObjectKeyFactoryImpl.JAVAMAGIC_NEWER)
54 throw wrapper.badMagic( new Integer( magic ) ) ;
H A DJIDLObjectKeyTemplate.java49 public JIDLObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is ) argument
51 super( orb, magic, scid, is.read_long(), JIDL_ORB_ID, JIDL_OAID );
59 public JIDLObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is, argument
62 super( orb, magic, scid, is.read_long(), JIDL_ORB_ID, JIDL_OAID );
H A DPOAObjectKeyTemplate.java49 public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is ) argument
51 super( orb, magic, scid, is.read_long(), is.read_string(),
60 public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is, argument
63 super( orb, magic, scid, is.read_long(), is.read_string(),
/openjdk10/hotspot/src/cpu/arm/vm/
H A Dicache_arm.cpp34 static int icache_flush(address addr, int lines, int magic) { argument
64 return magic;
69 static int icache_flush(address addr, int lines, int magic) { argument
71 return magic;
/openjdk10/hotspot/test/compiler/unsafe/
H A DUnsafeRaw.java87 final int magic = 0x12345678;
93 unsafe.putInt(addr, magic);
95 if (Tests.int_index(unsafe, addr, 0) != magic) throw new Exception();
96 if (Tests.long_index(unsafe, addr, 0) != magic) throw new Exception();
97 if (Tests.int_index_mul(unsafe, addr, 0) != magic) throw new Exception();
98 if (Tests.long_index_mul(unsafe, addr, 0) != magic) throw new Exception();
102 if (Tests.long_index(unsafe, addr1, idx1) != magic) throw new Exception();
107 if (Tests.long_index_back_ashift(unsafe, addr2, idx2) != magic) throw new Exception();
112 if (Tests.long_index_back_lshift(unsafe, addr3, idx3) != magic) throw new Exception();
117 if (Tests.int_const_12345678_index(unsafe, addr4) != magic) thro
[all...]
/openjdk10/jdk/src/java.base/share/classes/com/sun/java/util/jar/pack/
H A DUtils.java288 byte[] magic = new byte[4];
289 for (int i = 0; i < magic.length; i++) {
291 if (1 != in.read(magic, i, 1))
295 return magic;
298 // magic number recognizers
299 static boolean isJarMagic(byte[] magic) { argument
300 return (magic[0] == (byte)'P' &&
301 magic[1] == (byte)'K' &&
302 magic[2] >= 1 &&
303 magic[
306 isPackMagic(byte[] magic) argument
312 isGZIPMagic(byte[] magic) argument
[all...]
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/protocol/giopmsgheaders/
H A DFragmentMessage_1_1.java42 this.magic = msg11.magic;
/openjdk10/hotspot/src/cpu/ppc/vm/
H A Dicache_ppc.cpp31 int ICache::ppc64_flush_icache(address start, int lines, int magic) { argument
67 return magic;
H A Dicache_ppc.hpp34 static int ppc64_flush_icache(address start, int lines, int magic);
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/jimage/
H A DImageHeader.java45 private final int magic; field in class:ImageHeader
60 public ImageHeader(int magic, int majorVersion, int minorVersion, argument
64 this.magic = magic;
86 int magic = buffer.get(0);
96 return new ImageHeader(magic, majorVersion, minorVersion, flags,
108 buffer.putInt(magic);
118 return magic;
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/jmod/
H A DJmodFile.java46 // jmod magic number and version number
58 byte[] magic = new byte[4];
59 bis.read(magic);
60 if (magic[0] != JMOD_MAGIC_NUMBER[0] ||
61 magic[1] != JMOD_MAGIC_NUMBER[1]) {
64 if (magic[2] > JMOD_MAJOR_VERSION ||
65 (magic[2] == JMOD_MAJOR_VERSION && magic[3] > JMOD_MINOR_VERSION)) {
67 magic[2] + "." + magic[
[all...]
/openjdk10/hotspot/src/share/vm/runtime/
H A Dicache.hpp47 typedef int (*flush_icache_stub_t)(address addr, int lines, int magic);
88 // magic - Magic number copied to result register to make sure
H A Dicache.cpp55 // The business with the magic number is just a little security.
59 static int magic = 0xbaadbabe; local
61 int auto_magic = magic; // Make a local copy to avoid race condition
64 ++magic;
/openjdk10/hotspot/src/cpu/x86/vm/
H A Dicache_x86.cpp39 const Register magic = c_rarg2; local
61 const Address magic(rsp, 3*wordSize);
64 __ movptr(rax, magic); // Handshake with caller to make sure it happened!
/openjdk10/jdk/test/java/util/Currency/
H A DCheckDataVersion.java70 int magic = dis.readInt();
71 if (magic != 0x43757244) {
72 throw new RuntimeException("The magic number in the JRE's currency data is incorrect. Expected: 0x43757244, Got: 0x"+magic);
/openjdk10/jdk/src/java.base/unix/native/jspawnhelper/
H A Djspawnhelper.c77 int magic; local
80 res = readFully (fdin, &magic, sizeof(magic));
81 if (res != 4 || magic != magicNumber()) {
/openjdk10/jdk/src/jdk.internal.jvmstat/share/classes/sun/jvmstat/perfdata/monitor/
H A DAbstractPerfDataBufferPrologue.java43 * jint magic; // magic number - 0xcafec0c0
97 // the magic number is always stored in big-endian format
108 * Get the magic number.
110 * @return int - the magic number
113 // the magic number is always stored in big-endian format
117 // get the magic number
119 int magic = byteBuffer.getInt();
123 return magic;
225 * Get the magic numbe
[all...]
/openjdk10/jdk/src/java.management/share/classes/sun/management/counter/perf/
H A DPrologue.java70 private int magic; field in class:Prologue
75 // the magic number is always stored in big-endian format
80 magic = header.getInt();
82 // the magic number is always stored in big-endian format
83 if (magic != PERFDATA_MAGIC) {
107 return magic;

Completed in 238 milliseconds

12345