Commit Graph

249 Commits

Author SHA1 Message Date
Vladimir Krivosheev
8455df53ca build build-scripts using Bazel
GitOrigin-RevId: f6ab74d791f866f567297e20266a7620cddfafae
2024-09-20 01:52:02 +00:00
Vladimir Krivosheev
db3b4f7162 experimental compact storage for JPS Cache (part 5 - store OutputToTargetMapping)
GitOrigin-RevId: 36feec030cee2cbd5554a4fc0a3b80dd74ea764c
2024-09-19 05:28:30 +00:00
Alexey Kudravtsev
1f983b8625 optimization: do not instantiate weak/soft refs when not needed
GitOrigin-RevId: 93095b63af562f76d4ebc1108daea5ead860096a
2024-09-10 14:29:43 +00:00
Alexey Kudravtsev
179777c45b revert convert to combinators in hot path
GitOrigin-RevId: cd404cb2bdb8bc6f596781a4ebc05a638c7e792b
2024-09-04 12:03:32 +00:00
Mikhail Filippov
bf43f2fc01 IJPL-150165 bump Kotlin language and API version
GitOrigin-RevId: a59dc8ca214a5047773fccf1cf28a1e1b07acf68
2024-08-30 22:15:55 +00:00
Vladimir Krivosheev
ce08909070 simplify path hash calculation - do not use FileUtilRt.toCanonicalPath
GitOrigin-RevId: dbbc0459c550753ef216f8e4f2e65d5e4e3b80e1
2024-08-22 12:20:34 +00:00
Vladimir Krivosheev
7173841d21 refactor FileCollectionFactory
GitOrigin-RevId: d05fb6b21b5d584e652da474aaf13cc9978689e9
2024-08-22 12:20:34 +00:00
Vladimir Krivosheev
d7767f4877 Rename .java to .kt
GitOrigin-RevId: 763938ab60d89109acc05a0788720ca04f912b05
2024-08-22 12:20:34 +00:00
Max Medvedev
9c7195c590 introduce an experimental way to navigate from todo comment to todo toolwindow
GitOrigin-RevId: f97a892e63eb986258397b2a7df7af67e648c897
2024-08-18 23:30:58 +00:00
Alexey Kudravtsev
786124ece7 platform.util: IJPL-797 Mark accidentally public platform APIs private
GitOrigin-RevId: 97527307631f5115fe3a9c8dc8a123c5665a2048
2024-08-02 15:33:42 +00:00
Vadim Salavatov
84dd2b443c IJPL-159382 coroutine dump: preserve job address for blocking coroutines with deduplication enabled
GitOrigin-RevId: a134ac5d6528d01ad72098f56611531e6734acc9
2024-07-31 10:42:35 +00:00
Karol Lewandowski
d254beda2b Update General Threading Rules to Threading Model (labels and links)
GitOrigin-RevId: 45406f37f0c5387267708a880de123bd7972f5ac
2024-07-30 17:09:14 +00:00
Vadim Salavatov
d6190127db IJPL-158517 ensure dumpCoroutines never throws
GitOrigin-RevId: e6217b2c4aa6c4ec1ec7f5f101a2d02e32356cce
2024-07-30 13:32:15 +00:00
Vadim Salavatov
6e41cff151 IJPL-158517 fix NPE in coroutineDumper
GitOrigin-RevId: 34b97b0d45a90d8fbdab47e6bfe417f389057ef0
2024-07-30 13:32:14 +00:00
Daniil Ovchinnikov
7e3390a939 IJPL-150347 treat @NonExtendable classes as effectively final
GitOrigin-RevId: 273fb2a330cb67183be538890ae5c2c53aa9acf8
2024-07-08 23:18:28 +00:00
Ilia.Shulgin
c2c9c96141 Update link in NaturalComparator description
GitOrigin-RevId: ef34e1c46002cd5576cfc3f11acb4bf14060f634
2024-06-18 22:19:25 +00:00
Ilia.Shulgin
16e0e2eb74 [git] Ignore case when listing git branches
IJPL-86830 IJPL-150396 IJPL-112392

GitOrigin-RevId: 312a60bbbd45da06610012f1b4710c76d8c65fdd
2024-06-18 22:19:25 +00:00
Gregory.Shrago
0011b7d7c3 introduce ThreadDumper.dumpForDebug
GitOrigin-RevId: d79d123e9994c1d53544d66db330d308cc7bf180
2024-06-18 01:43:33 +00:00
Vadim Salavatov
fe1a45223e IJPL-156281 make coroutine dumper resilient to circular job dependencies
GitOrigin-RevId: 95d64a8fca56c22a2fd9c3d0a7efd29c39ff8126
2024-06-11 13:53:08 +00:00
Daniil Ovchinnikov
6226776bd0 IJPL-148997 exclude non-abstract toString() from the API dump
GitOrigin-RevId: 6352bbb374532bca296d08131ae50083f69e46c0
2024-05-29 00:05:31 +00:00
Alexey Kudravtsev
04c31dddfb avoid too many coroutine dispatch idle threads littering thread dump
GitOrigin-RevId: 5a7afb198e9b2bc03f53f9a55f777c2981dd65d8
2024-05-17 13:50:15 +00:00
Max Medvedev
bc0a67dd04 add doc comment for several factory methods
GitOrigin-RevId: f27bacf90209d9686204369bee91f85cf0440d12
2024-05-16 20:42:13 +00:00
Andrei Rybak
26d8b55820 Fix incorrect usages of Javadoc syntax {@code} and {@link} in various
Java classes.

Reviewed-by: Tagir Valeev <tagir.valeev@jetbrains.com>
PR#2520

GitOrigin-RevId: 2ace377ae2dc38b0cfe0a73bf43ac84a067b3071
2024-05-16 13:58:10 +00:00
Anna Kozlova
d4b221daf1 IJPL-797 intellij.platform.smRunner review internal API
GitOrigin-RevId: 0e5b2b895e93fda6321f9676d20beccbdc485640
2024-05-15 11:39:27 +00:00
Konstantin Nisht
12e78f18d6 [platform] IJPL-1039: extend ProcessCanceledException from CancellationException
GitOrigin-RevId: 8edd7e83dc7029225e6d98f538428d6d6acfcc50
2024-05-02 22:41:33 +00:00
Alexey Kudravtsev
fcf6695df4 document 1st argument of eviction listener notnull for clarity
GitOrigin-RevId: 2ed4e27cf9f422ae321ac7d0102f46ffeacd3c63
2024-05-01 11:53:09 +00:00
Egor Ushakov
da7debd54c [kotlin debugger] in coroutines 1.8 creation stacktraces are disabled by default, enable it explicitly for now only in debug mode
GitOrigin-RevId: 2b9b76e629ac52adf4af56484e0fba0e8661f636
2024-04-17 13:00:44 +00:00
Tagir Valeev
5caf42dc70 [util] Merge NameUtilCore#uniqName into UniqueNameGenerator
GitOrigin-RevId: a43f8908b639a6e5b562be99af5f880a85cfac74
2024-04-16 19:06:47 +00:00
Daniil Ovchinnikov
748008ae87 ApiCheckTest: use api-dump.txt instead of apiDump.txt
GitOrigin-RevId: d195bea932a0a26d192aea94c4f551c166ab3d1f
2024-04-08 16:18:00 +00:00
Daniil Ovchinnikov
30e72eb070 API dump: include public supertypes of private supertypes
GitOrigin-RevId: 72c733ee53f03b52f84e781b78c502fdaddd07ba
2024-04-06 01:43:03 +00:00
Daniil Ovchinnikov
57896efa7e API dump: don't include synthetic bridges in the dump
These methods exist to support
- covariant return type overrides;
- generic overrides;
- overrides of `void` methods with methods returning `java/lang/Void` in Kotlin.

Such methods are called only through supertype invocations, and supertypes are already listed in the dump.

The main reason for avoiding these in dumps: Java allows extending a public class `B` from a package-local class `A`.
`B` can override a method of `A` with a covariant return type.
In this case, a synthetic bridge is generated in `B` with the return type from method in `A`.
If the method return type in `A` is also a package-local class `C`, this would mean `C` is leaked by the API surface of `B`.
Instead, we consider such bridges not a part of the API. For a concrete example, see:
`com.intellij.tools.apiDump.testData.inheritFromPackageLocal.JPackageLocalClass.packagePrivateMethodWithPackagePrivateReturnType`.

Another reason has the same root cause: Java allows such class inheritance.
A public class `B` which extends package-local class `A` "opens" up _all_ public/protected methods of `A` to the outer world.
In subsequent commits, this is going to be reflected in the dump by copying the API methods of package-local `A` into public `B`.
We don't want to copy the bridges, which a part of `A` and can be only accessed through supertype of `A`,
to avoid false positive leaking API errors.

GitOrigin-RevId: 2aecf62ad18f4ed6458927ccbd86f8066bea4751
2024-04-06 01:42:47 +00:00
Tagir Valeev
9d92a74035 [util] TextRange: some javadocs
GitOrigin-RevId: c969a4e64eb622df5b18e484fa6f5d689f37f49b
2024-04-03 09:29:34 +00:00
Petr Kudriavtsev
3fd4de3809 [clion] fixed CPP-38152/Project-leak-in-CLion-Trunk-General-Tests-on-Win-11
LeakHunter should trigger erasing of expired elements from WeakHashMaps
before checking them to avoid false positives.

https://jetbrains.team/p/ij/reviews/130067/files

GitOrigin-RevId: abda6fb6bc88ba3f104d25bddf9fc18405c9a4d8
2024-03-27 17:12:20 +00:00
Daniil Ovchinnikov
3f76a5adc0 IJPL-797 intellij.platform.util.base: dump API
GitOrigin-RevId: 8cee8cea39e9547a343f49cb0a14250a527284e3
2024-03-27 00:34:21 +00:00
Alexey Kudravtsev
23bbdb8cc7 evictionListener in CollectionFactory should accept this map as an argument, to make it easier to write self-referential listeners
GitOrigin-RevId: e5257b1c282a95624fdb6cc2d53bff7c46828e22
2024-03-21 05:07:17 +00:00
Mikhail Mazurkevich
77ef2d9094 [intellij sh] IDEA-344658 Fix notification with a suggestion to update to the same version
GitOrigin-RevId: 74c22be9017c90b4e0b643a29f03794620776412
2024-03-20 22:03:07 +00:00
Tagir Valeev
832b80f75b [util] NameUtilCore.uniqName
GitOrigin-RevId: 9ff6d21d5e1efc735239d79a80c8993f476d7a5d
2024-03-16 12:19:24 +00:00
Roman Shevchenko
5f1096366f [platform] later activation of DialogAppender; getting rid of "force delaying hack"
GitOrigin-RevId: 8a117c299bcda305c92050ffd43728534d8c77ff
2024-03-04 23:27:19 +00:00
Gregory.Shrago
5a24626e03 add proper wildcards for evictionListener
GitOrigin-RevId: ef7935a01801e338697ac67bc2d3afe83ea23b02
2024-02-21 21:34:57 +00:00
Alexey Kudravtsev
473c6b0714 support eviction listener for Concurrent(Soft/Weak)Map
GitOrigin-RevId: 97682fca3c6db1f9ac64caced9348f11b16b4343
2024-02-21 16:48:54 +00:00
Vladimir Krivosheev
81a5bdf1b0 cleanup - sort modifiers
GitOrigin-RevId: dc2cc5e5cc2d1f474d6d26808a8862448bd8b742
2024-02-19 15:41:13 +00:00
Nikolay Chashnikov
9d5299c0aa [platform] API: mark for removal deprecated API without usages (IJPL-275)
GitOrigin-RevId: 1675b300f41a37b7b3ea0e2b7a1758a1aae296eb
2024-02-16 15:45:34 +00:00
Vladimir Krivosheev
b3d2892c69 IJPL-661 java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1025
GitOrigin-RevId: 5de543ea910cd6197cb218f2e622c268ff2bd85a
2024-02-15 10:40:06 +00:00
Yann Cébron
6aa203814a [docs] update links to IntelliJ Platform SDK Docs
GitOrigin-RevId: 543b8a02e71e543f97d263a0de4df41e196ff5a0
2024-02-14 19:18:39 +00:00
Gregory.Shrago
018e5f86ea introduce ref-value maps with evictionListener
GitOrigin-RevId: 9f20025f191386a9d0c964c871a7c470fa4255a9
2024-02-07 18:56:28 +00:00
Vladimir Krivosheev
82b321d57c IJPL-594 update fastutil 8.5.11 -> 8.5.13 (part 2)
GitOrigin-RevId: 4f55be9e64dc4a484750762590056d478b746c97
2024-02-07 17:03:23 +00:00
Daniil Ovchinnikov
28c8c92318 IJPL-475 ability to skip waiting for completion of project coroutines
GitOrigin-RevId: 8f976fe99b2e8b1d333889ba92a5517da7dfd1e2
2024-02-07 15:44:22 +00:00
Alexey Kudravtsev
0fe1ce6791 IJPL-568 ConcurrentRefValueHashMap.putIfAbsent does not get rid of obsolete references when the insertion succeeds from the first try
GitOrigin-RevId: 377c170b64fc92f732d33ce811601b6d20ea1a73
2024-01-31 14:29:16 +00:00
Vladimir Krivosheev
b6bbebcdae IJPL-166 enable coroutine dump a little bit later, log error
GitOrigin-RevId: 214a83e6855634ecc47c6cf8b17f4920336f729a
2024-01-27 09:54:15 +00:00
Daniil Ovchinnikov
e2cea41d2b fix duplicated coroutine name in dumps
GitOrigin-RevId: d79378aa671dd20e39fb6e2deef12d20801af4ea
2024-01-23 00:30:47 +00:00