jdk/src/share/native/com/sun/java/util/jar/pack/main.cpp
changeset 15261 c5b882836677
parent 14342 8435a30053c1
child 25149 7df9d6b3ef17
equal deleted inserted replaced
15260:7af2d7a87806 15261:c5b882836677
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    69 #endif
    69 #endif
    70 NOT_PRODUCT(static THRTYPE uThread = -1;)
    70 NOT_PRODUCT(static THRTYPE uThread = -1;)
    71 
    71 
    72 unpacker* unpacker::non_mt_current = null;
    72 unpacker* unpacker::non_mt_current = null;
    73 unpacker* unpacker::current() {
    73 unpacker* unpacker::current() {
    74   assert(uThread == THREAD_SELF);
    74   //assert(uThread == THREAD_SELF);
    75   return non_mt_current;
    75   return non_mt_current;
    76 }
    76 }
    77 static void set_current_unpacker(unpacker* u) {
    77 static void set_current_unpacker(unpacker* u) {
    78   unpacker::non_mt_current = u;
    78   unpacker::non_mt_current = u;
    79   assert(((uThread = (u == null) ? (THRTYPE) -1 : THREAD_SELF),
    79   assert(((uThread = (u == null) ? (THRTYPE) -1 : THREAD_SELF),