Commit Graph

59 Commits

Author SHA1 Message Date
Zalim Bashorov 89791dc85c Batch recording lookups in daemon 2015-11-17 17:25:38 +03:00
Zalim Bashorov 6305bbda5d Fix tracking lookups when compile using daemon 2015-11-17 17:25:37 +03:00
Ilya Gorbunov 0579f6c8bf Replace Regex.match and matchAll usages 2015-11-11 18:59:55 +03:00
Ilya Chernikov b71fec985f Adding possibility to skip params inheritance on daemon jvm options creation, refactoring appropriate api, using it to fix tests 2015-11-03 21:56:31 +01:00
Ilya Chernikov 10036d7ef3 Enabling parallel builds in JPS without daemon, enabling application environment disposing in tests, introducing keepalive property constant 2015-11-03 14:18:22 +01:00
Ilya Chernikov 90bb8b2be9 Generalizing daemon process shutdown mechanism 2015-11-03 14:18:21 +01:00
Ilya Chernikov 6a1c82d101 hiding compiler digest management inside the compiler service, implement simple lazy checking mechanism, using it from clients 2015-11-03 14:18:20 +01:00
Ilya Chernikov 2fa7b53d2c Implementing utilities to detect OS type and apprpriate location of runtime data files, using it to determine daemon run dir. Fixes KT-9696 2015-11-03 14:18:19 +01:00
Ilya Chernikov 2dfca72f38 Passing port through daemon client API to allow port reusing for client-side components, introducing operations tracer interface for testing purposes 2015-11-03 14:18:17 +01:00
Zalim Bashorov a5d8b47083 Refactoring: introduced val location: LocationInfo? in LookupLocation and use it in LookupTracker::record 2015-11-02 18:18:29 +03:00
Ilya Chernikov 7dbb0dff2c Placing forced shutdown timeout into daemon options, setting default to 10s, removing appropriate property as obsolete 2015-10-26 15:59:11 +01:00
Ilya Chernikov 80fb9b8473 Removing try/catch in the lock file acquiring algo, to avoid hanging like in case described here - https://devnet.jetbrains.com/message/5561306
it should now fail and fallback to in-process compilation
2015-10-26 15:59:10 +01:00
Ilya Chernikov 2fa0988c85 Increasing socket backlog size in attempt to solve problems like EA-74493 (connection refused) 2015-10-26 15:59:09 +01:00
Dmitry Jemerov 56735b3302 system property to keep application environment alive across multiple compilations
(cherry picked from commit a6b269c)
2015-10-19 18:01:43 +02:00
Ilya Chernikov ab3cfc3454 Adding property to enforce daemon shutdown, dropping unnecessary inheritance of the CompilerServiceImpl from UnicastRemoteObject, because manual control is used
(cherry picked from commit 182a231)
(cherry picked from commit eecd953)
2015-10-19 13:32:20 +02:00
Ilya Chernikov 3f83a2895f Code cleanup 2015-10-14 12:20:01 +02:00
Ilya Chernikov d9b0e4db48 Simplifying java binary selection: java.awt.headless property seems work on all platforms 2015-10-14 12:20:00 +02:00
Ilya Chernikov 21558fe1c6 Deriving callback server classes from UnicastRemoteObject instead of manual registration, magically solves the problems with parallel builds; modifying and refactoring usage places accordingly 2015-10-14 12:20:00 +02:00
Ilya Chernikov 6a7c5e1576 Reducing overhead of rpc callbacks by 1) subsampling cancelled status check (had severe impact), and 2) using buffered remote message streams (had less but still noticeable impact) 2015-10-07 19:55:06 +02:00
Ilya Chernikov 50f482e50f Fixing problem of hanging wait for jps process in idea by using a native-platform lib for platform-specific daemon execution
Adding native-platform uberjar contents to kotlin jps plugin jar
2015-10-07 19:55:04 +02:00
Ilya Chernikov 6848628f4a Creating a test simulating idea-jps-daemon processes, that should now fail on windows, some refactorings in the daemon client to simplify test writing 2015-10-07 19:55:04 +02:00
Ilya Chernikov 99b638a58b Adding support for JS compilation on daemon 2015-10-07 19:55:03 +02:00
Ilya Chernikov 391c292b8d Merging callback services into single facade - phase 2 - rewriting interfaces and implementations 2015-10-07 19:55:03 +02:00
Ilya Chernikov 0f33633cc5 Merging callback services into single facade - phase 1 - rearranging interfaces and implementations into target files 2015-10-07 19:55:02 +02:00
Ilya Chernikov be66c24467 Extracting performance measuring utils into mini-framework, implement measurements of the rpc time, adding more measurements to performance logging, minor refactorings 2015-10-07 19:55:01 +02:00
Alexander Udalov 7c0b3e31c7 Fix usages of callable references with empty LHS in project 2015-10-03 04:37:06 +03:00
Dmitry Petrov 3dfe9951ef Incremental compilation support for multifile classes. 2015-09-30 09:56:05 +03:00
Alexander Udalov 6a8d0fbd75 Introduce infrastructure to separate string table from metadata on JVM
Nothing especially helpful happens here, this is only a big refactoring
introducing a separate string array for the string table, which is currently
always empty, but will contain actual strings soon
2015-09-29 16:26:27 +03:00
Ilya Chernikov 4b1601974f Refactoring parts related to passing services to compiler in daemon, adding uniform support for cancellation check and lookup tracking 2015-09-24 10:44:44 +02:00
Ilya Chernikov 886dc4b438 Refactoring daemon tests for more reusable code, adding instances test, minor fixes and improvements 2015-09-24 09:56:25 +02:00
Ilya Chernikov c294a682de Utils for checking presense of certain lines in a sequence, using this tool for checking log after daemon builds in tests, fixing explicit daemon shutdown used in the test, some minor fixes 2015-09-24 09:56:24 +02:00
Denis Zharkov 9c4564a5a6 Get rid of deprecated annotations and modifiers in project code 2015-09-18 09:34:27 +03:00
Ilya Chernikov 8b970cd186 Fixing run filename compatibility with windows, improving diagnostics, some minor tweaks 2015-09-11 15:30:17 +02:00
Ilya Chernikov cbaa981aab migrate to the new annotations syntax 2015-09-10 22:31:00 +02:00
Ilya Chernikov 473ff00940 adding java startup parameters for headless appearance of the daemon on mac, prepared a function for resetting alive flag in kotlin plugin startup component as a temporary solution to stop daemon from idea, fixing code that disable incremental compilation, that was broken on the last modification of KotlinBuildProcessParametersProvider 2015-09-10 22:30:59 +02:00
Ilya Chernikov dc3c1beeb9 Fixes after review, adding basic options parsing tests 2015-09-10 22:30:58 +02:00
Ilya Chernikov 96558c52ff Refactorings, reformatting code, applying code style and other cleanup 2015-09-10 22:30:57 +02:00
Ilya Chernikov d448602cb2 Making daemon to listen only loopback interface and to work without active ip interface 2015-09-10 22:30:57 +02:00
Ilya Chernikov c4719175f9 Refactoring startup and shutdown, refactoring service implementation, implementing error and info reporting to compiler output, idle autoshutdown mechanisms, fixing TargetId serializability, some other refactoring
Fixing stream to log handler (by removing non-working optimization), fixing idle time calculation, reporting refactorings
2015-09-10 22:30:56 +02:00
Ilya Chernikov 406bfba473 Implementation of multiple daemon instances management 2015-09-10 22:30:55 +02:00
Ilya Chernikov f6c6087fe3 Adding escaping to kotlin.daemon.jvm.options property processing to allow passing e.g. debugging agent params; adding kotlin.daemon.startup.timeout property to control startup timeout; more logging; some minor cleanup and fixes 2015-09-10 22:30:55 +02:00
Alexey Tsvetkov 12181d274b Remove InlineRegistering interface 2015-09-08 05:49:35 +03:00
Alexey Tsvetkov 7e515e3820 Use simple data class TargetId instead of Module to get incremental cache 2015-09-08 05:49:34 +03:00
Alexey Tsvetkov 06bfc5a16b Update inline incremental compilation for compile daemon 2015-09-08 05:49:33 +03:00
Zalim Bashorov ec62cccb1a Fix incremental compilation for new package parts 2015-09-07 16:29:06 +03:00
Ilya Chernikov 7c1c628823 Next round of refactoring after review 2015-08-31 19:10:28 +02:00
Ilya Chernikov 9bee97e810 Refactoring after review 2015-08-31 18:39:55 +02:00
Ilya Chernikov 2d45a37884 Passing JPS process JVM memory options to daemon, refactoring options processing 2015-08-31 18:39:54 +02:00
Ilya Chernikov 61de1c3212 Fixes after review 2015-08-31 18:39:54 +02:00
ligee 434c30c1bc Simple test with daemon compilation, minor fixes mostly for easier testing 2015-08-31 18:39:53 +02:00