help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [Q] Swazoo + GST Problem on Windows


From: S.J.Chun
Subject: [Help-smalltalk] [Q] Swazoo + GST Problem on Windows
Date: Fri, 25 Jul 2008 08:36:04 +0900

My previous report on Swazoo + GST on Windows is half correct.
When I run gst.exe -f GST.st where GST.st contains simple example
in the wiki (I've attached it), the system CPU load be 100%. When I 
press Control+C to stop(as Paolo requested). following trace back
is emitted.

C:GST>bingst.exe -f C:UsersSungjinDocumentsOpenPiczzaGST.st
Started
C:UsersSungjinDocumentsOpenPiczzaGST.st:23: Interrupt
(ip 6)ProcessorScheduler>>#yield
(ip 10)[] in Delay class>>#initialize
(ip 52)[] in Process>>#onBlock:at:suspend:
(ip 10)<unwind> BlockClosure>>#on:do:
(ip 14)[] in Process>>#onBlock:at:suspend:
(ip 2)<unwind> BlockClosure>>#ensure:
(ip 10)[] in Process>>#onBlock:at:suspend:
(ip 46)[] in BlockClosure>>#asContext:
(ip 14)BlockContext class>>#fromClosure:parent:

I hope this could be useful for debugging... Oh and Ah, I'm using 
smalltalk-3.0b.tar.gz
without jit. After building, when I run make check, it seems that it takes 
forever to finish
integermath testing(I'm not using gmp).


Thanks in advance.
PackageLoader fileInPackage: 'Swazoo'.

Swazoo.Resource subclass: MyResource [
  answerTo: aRequest [
    | response |
    response := Swazoo.HTTPResponse ok.
    response entity: '<h1>Hello</h1>'.
    ^ response
  ]
]

site := Swazoo.Site new name: 'test'.
site host: 'localhost' ip: '127.0.0.1' port: 8888.

resource := MyResource new uriPattern: 'helloworld.html'.
composite := Swazoo.CompositeResource new uriPattern: '/'.
composite addResource: resource.
site addResource: composite.

Swazoo.SwazooServer singleton addSite: site.
site start.
Transcript show: 'Started'; cr.
Processor activeProcess suspend.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]