Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 23d26a3

Browse files
disable debug logs
1 parent a604d66 commit 23d26a3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

‎external-stg-interpreter/lib/Stg/Interpreter.hs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ data ThreadStatus
385385

386386
killAllThreads :: M ()
387387
killAllThreads = do
388-
liftIO $putStrLn "[estgi] - killAllThreads"
388+
mylog "[estgi] - killAllThreads"
389389
-- TODO: check if there are running threads
390390
tsList <- gets $ IntMap.toList . ssThreads
391391
let runnableThreads = [tid | (tid, ts) <- tsList, tsStatus ts == ThreadRunning]
@@ -419,7 +419,7 @@ evalOnThread isMainThread setupAction = do
419419
True -> loop resultOut -- HINT: the new scheduling is ready
420420
False -> do
421421
when isMainThread $ do
422-
liftIO $putStrLn "[estgi] - main hs thread finished"
422+
mylog "[estgi] - main hs thread finished"
423423
killAllThreads
424424
pure tsCurrentResult
425425
loop result0

‎external-stg-interpreter/lib/Stg/Interpreter/Base.hs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,9 +1470,12 @@ traceLog msg = do
14701470
liftIO $ hPutStrLn thWholeProgramPath $ maybe "" BS8.unpack (tsLabel ts) ++ "\t" ++ show tid ++ "\t" ++ msg
14711471

14721472
mylog :: String -> M ()
1473+
mylog _ = pure ()
1474+
{-
14731475
mylog msg = do
14741476
ctid <- gets ssCurrentThreadId
14751477
pp <- gets ssCurrentProgramPoint
14761478
liftIO $ do
14771479
BS8.putStrLn . BS8.pack $ msg ++ " " ++ show pp ++ " " ++ show ctid
14781480
hFlush stdout
1481+
-}

‎external-stg-interpreter/lib/Stg/Interpreter/GC.hs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,12 @@ finalizeDeadWeakPointers :: IntSet -> M ()
158158
finalizeDeadWeakPointers rsWeaks = do
159159
let deadWeaks = IntSet.toList rsWeaks
160160
wdescs <- mapM lookupWeakPointerDescriptor deadWeaks
161+
{-
161162
liftIO $ do
162163
putStrLn $ " * GC - run finalizers for dead weak pointers: " ++ show rsWeaks
163164
mapM_ print wdescs
165+
-}
166+
pure ()
164167
-- TODO: implement it right
165168
--forM_ deadWeaks PrimWeakPointer.finalizeWeak
166169

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /