This commit is contained in:
wuyizhong 2006-09-11 07:39:08 +00:00
parent d039f539ae
commit 7dd2b2ad65

View File

@ -299,6 +299,8 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes
// Call compress // Call compress
// //
byte[] fileBuffer = bo.toByteArray(); byte[] fileBuffer = bo.toByteArray();
synchronized (CompressSection.semaphore) {
Compress myCompress = new Compress(fileBuffer, fileBuffer.length); Compress myCompress = new Compress(fileBuffer, fileBuffer.length);
// //
@ -349,6 +351,7 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes
size ++; size ++;
buffer.writeByte(0); buffer.writeByte(0);
} }
}
} }
catch (Exception e){ catch (Exception e){
throw new BuildException("compress.toBuffer failed!\n"); throw new BuildException("compress.toBuffer failed!\n");