From 7dd2b2ad65b407a2d37c2a469498cbc4c3a13bad Mon Sep 17 00:00:00 2001 From: wuyizhong Date: Mon, 11 Sep 2006 07:39:08 +0000 Subject: [PATCH] git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1509 6f19259b-4bc3-4df7-8a09-765794883524 --- .../org/tianocore/framework/tasks/GenSectionTask.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java index bb477f031e..fc5ebbf3dc 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java @@ -299,6 +299,8 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes // Call compress // byte[] fileBuffer = bo.toByteArray(); + + synchronized (CompressSection.semaphore) { Compress myCompress = new Compress(fileBuffer, fileBuffer.length); // @@ -349,6 +351,7 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes size ++; buffer.writeByte(0); } + } } catch (Exception e){ throw new BuildException("compress.toBuffer failed!\n");