Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Revert "wip-parallel-experiment threadPoolSize=1 (hardwire)"
Browse files Browse the repository at this point in the history
This reverts commit db55a0a.
  • Loading branch information
gkaracha committed May 6, 2020
1 parent 6d2a4d4 commit c9bce59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion asterius/src/Asterius/Backends/Binaryen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ marshalModule tail_calls pool_size sym_map hs_mod@Module {..} = do
envSymbolMap = sym_map,
envModuleRef = m
}
parallelFoldMap 1 (M.toList functionMap') $ \(k, f@Function {..}) -> -- TODO: pool_size
parallelFoldMap pool_size (M.toList functionMap') $ \(k, f@Function {..}) ->
flip runReaderT env $ void $ marshalFunction k (ftps M.! functionType) f
forM_ functionImports $ \fi@FunctionImport {..} ->
marshalFunctionImport m (ftps M.! functionType) fi
Expand Down
4 changes: 2 additions & 2 deletions asterius/src/Asterius/Ld.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ loadTheWorld LinkTask {..} = do
ncu <- newNameCacheUpdater
lib <- do
entries <- concat <$> for linkLibs loadArchiveEntries
parallelFoldMap 1 entries (loadArchiveEntry ncu) -- TODO: threadPoolSize
objs <- parallelFoldMap 1 linkObjs (loadObj ncu) -- TODO: threadPoolSize
parallelFoldMap threadPoolSize entries (loadArchiveEntry ncu)
objs <- parallelFoldMap threadPoolSize linkObjs (loadObj ncu)
evaluate $ linkModule <> objs <> lib
where
loadObj ncu path = tryGetFile ncu path >>= \case
Expand Down
2 changes: 1 addition & 1 deletion asterius/src/Asterius/Resolve.hs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ linkStart debug gc_sections verbose_err pool_size store root_syms export_funcs =
merged_m0
| gc_sections = gcSections verbose_err store root_syms export_funcs
| otherwise = fromCachedModule store
!merged_m0_evaluated = parForceAsteriusModule 1 merged_m0 -- TODO: pool_size
!merged_m0_evaluated = parForceAsteriusModule pool_size merged_m0
merged_m1
| debug = addMemoryTrap merged_m0_evaluated
| otherwise = merged_m0_evaluated
Expand Down

0 comments on commit c9bce59

Please sign in to comment.